Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.file format makes the rest of the string disappear with very long file names #560

Closed
DanChaltiel opened this issue Jan 6, 2023 · 1 comment

Comments

@DanChaltiel
Copy link
Contributor

Here is a reprex :

#works with short names
cli::cli_inform("Unzipping {.file C:\\xxxxxxxxxx\\xxxxxxxxxx\\xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.zip}")
#doesn't with long names
cli::cli_inform("Unzipping {.file C:\\xxxxxxxxxx\\xxxxxxxxxx\\xxxxxxxxxx\\xxxxxxxxxx\\xxxxxxxxxx\\xxxxxxxxxx\\xxxxx xxxxx\\xxxxxxxxxx\\xxx xxxxxx\\xxxxx xxxxx\\xxxxxxxxxx\\xxxxxxxxxxx xxxxxxxxxxxx xxxxxxxx.zip}")
#works with .val
cli::cli_inform("Unzipping {.val C:\\xxxxxxxxxx\\xxxxxxxxxx\\xxxxxxxxxx\\xxxxxxxxxx\\xxxxxxxxxx\\xxxxxxxxxx\\xxxxx xxxxx\\xxxxxxxxxx\\xxx xxxxxx\\xxxxx xxxxx\\xxxxxxxxxx\\xxxxxxxxxxx xxxxxxxxxxxx xxxxxxxx.zip}")

image

This seems to pertain to console width.
This screenshot was taken with getOption("width")==86, but when I stretch my console until getOption("width")==193, the problem disappears and "Unzipping" comes back.
With reprex::reprex(),, everything works as expected (hence the screenshot) although getOption("width")==80.

@gaborcsardi
Copy link
Member

Seems like an issue with RStudio only, reported here: rstudio/rstudio#13869

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants