tests/testthat/_snaps/markdown-link.md

non-text nodes in links fails

Code
  markdown("[`foo` bar][x]", tag = tag)
Condition
  Warning:
  [foo.R:10] @title (automatically generated) markdown links must contain plain text
  i Problematic link: x
Output
  [1] ""
Code
  markdown("[__baz__][x]", tag = tag)
Condition
  Warning:
  [foo.R:10] @title (automatically generated) markdown links must contain plain text
  i Problematic link: x
Output
  [1] ""

short and sweet links work

Code
  out1 <- roc_proc_text(rd_roclet(),
  "\n    #' Title\n    #'\n    #' See [11pkg::function()], [11pkg::object].\n    #' @md\n    foo <- function() {}")[[
    1]]
Condition
  Warning:
  [<text>:4] @description refers to unavailable topic 11pkg::function
  Caused by error in `find.package()`:
  ! there is no package called '11pkg'
  Warning:
  [<text>:4] @description refers to unavailable topic 11pkg::object
  Caused by error in `find.package()`:
  ! there is no package called '11pkg'
[<text>:4] @description refers to unavailable topic stringr::bar111


Try the roxygen2 package in your browser

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

roxygen2 documentation built on Dec. 9, 2022, 1:09 a.m.