tests/testthat/_snaps/ansi-hyperlink.md

unknown hyperlink type

Code
  make_link("this", "foobar")
Condition
  Error in `match.arg()`:
  ! 'arg' should be one of "email", "file", "fun", "help", "href", "run", "topic", "url", "vignette"

iterm file links

Code
  cli::cli_text("{.file /path/to/file:10}")
Message
  ']8;;file:///path/to/file#10/path/to/file:10]8;;'
Code
  cli::cli_text("{.file /path/to/file:10:20}")
Message
  ']8;;file:///path/to/file#10:20/path/to/file:10:20]8;;'

rstudio links

Code
  cli::cli_text("{.fun pkg::fun}")
Message
  `]8;;ide:help:pkg::funpkg::fun]8;;()`
Code
  cli::cli_text("{.help fun}")
Message
  ]8;;ide:help:funfun]8;;
Code
  cli::cli_text("{.run package::func()}")
Message
  ]8;;ide:run:package::func()package::func()]8;;
Code
  cli::cli_text("{.vignette package::title}")
Message
  ]8;;ide:vignette:package::titlepackage::title]8;;
Code
  cli::cli_text("{.topic pkg::topic}")
Message
  ]8;;ide:help:pkg::topicpkg::topic]8;;

ST hyperlinks

Code
  cat(style_hyperlink("text", "https://example.com"))
Output
  ]8;;https://example.com\text]8;;\


Try the cli package in your browser

Any scripts or data that you put into this service are public.

cli documentation built on March 31, 2023, 9:04 p.m.