We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I have vector inlcuded in a cli_alert_* function, it is getting truncated. I don't see any arguments to prevent this.
cli_alert_*
dat <- c("tidyverse", "tidyxl", "tigris", "tiler", "timechange", "tinytex", "tm", "tokenizers", "tools", "transformr", "trend", "triebeard", "TTR", "tweenr", "tzdb", "units", "unpivotr", "UpSetR", "urlchecker", "urltools", "usdata", "usethis", "utf8", "utils", "uuid", "V8", "vctrs", "viridis", "viridisLite", "visdat", "vroom", "waiter", "waldo", "webfakes", "webshot", "websocket", "wec", "whereami", "whisker", "whoami", "withr", "wk", "wordcloud", "WriteXLS", "xfun", "xlsx", "xlsxjars", "XML", "xml2", "xmlparsedata", "xopen", "xtable", "xts", "yaml", "yulab.utils", "zip", "zoo") cli::cli_alert_info("Here is a long vector that gets truncated: {dat}") #> ℹ Here is a long vector that gets truncated: tidyverse, tidyxl, tigris, tiler, timechange, tinytex, tm, tokenizers, tools, transformr, trend, triebeard, TTR, tweenr, tzdb, units, unpivotr, UpSetR, …, zip, and zoo
Note that the values between UpSetR and zip are not printed, and instead are replaced by ...
...
The text was updated successfully, but these errors were encountered:
This is as designed. You probably don't want to print an arbitrarily long vector.
Nevertheless you can customize it if you like:
❯ dat <- cli_vec(dat, style = list("vec-trunc" = Inf)) ❯ cli::cli_alert_info("Here is a long vector that gets truncated: {dat}") ℹ Here is a long vector that gets truncated: tidyverse, tidyxl, tigris, tiler, timechange, tinytex, tm, tokenizers, tools, transformr, trend, triebeard, TTR, tweenr, tzdb, units, unpivotr, UpSetR, urlchecker, urltools, usdata, usethis, utf8, utils, uuid, V8, vctrs, viridis, viridisLite, visdat, vroom, waiter, waldo, webfakes, webshot, websocket, wec, whereami, whisker, whoami, withr, wk, wordcloud, WriteXLS, xfun, xlsx, xlsxjars, XML, xml2, xmlparsedata, xopen, xtable, xts, yaml, yulab.utils, zip, and zoo
Sorry, something went wrong.
No branches or pull requests
When I have vector inlcuded in a
cli_alert_*
function, it is getting truncated. I don't see any arguments to prevent this.Note that the values between UpSetR and zip are not printed, and instead are replaced by
...
The text was updated successfully, but these errors were encountered: