You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I pass output from {fs} into link text, the actual link still shows up in the output:
path<-fs::path("a/b")
# with fs_path objectcli::cli_text("go to {.href [c](file://{path})}")
#> go to a/b�c## with charactercli::cli_text("go to {.href [c](file://{unclass(path)})}")
#> go to c
FWIW, this is what the output of reprex looks like:
path<-fs::path("a/b")
# with fs_path objectcli::cli_text("go to {.href [c](file://{path})}")
#> go to c (<file://'a/b'>)cli::cli_text("go to {.href [c](file://{unclass(path)})}")
## with character#> go to c (<file://a/b>)
I'm poking around file hyperlinks and came through here. Here's another view of what has gone wrong:
path<-fs::path("a/b")
cli::format_inline("go to {.href [c](file://{path})}")
#> [1] "go to \033]8;;file://'\033]8;;file:///Users/jenny/rrr/cli/a/b\aa/b\033]8;;\a'\ac"cli::format_inline("go to {.href [c](file://{unclass(path)})}")
#> [1] "go to \033]8;;file://a/b\ac\033]8;;\a"
If I pass output from {fs} into link text, the actual link still shows up in the output:
FWIW, this is what the output of reprex looks like:
Created on 2024-08-09 with reprex v2.1.1
The text was updated successfully, but these errors were encountered: