Running ‘testthat.R’ [14s/16s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(roxygen2)
  > 
  > test_check("roxygen2")
  ── 1. Failure: commonmark picks up the various link references (@test-rd-markdow
  commonmark::markdown_xml\(add_linkrefs_to_md\(cases\[\[i\]\]\[1\]\)\) does not match "<link destination=\"R:func\\(\\)\" title=\"\">\\s*<text>func\\(\\)</text>".
  Actual value: "<\?xml version="1\.0" encoding="UTF-8"\?>\\n<!DOCTYPE document SYSTEM "CommonMark\.dtd">\\n<document xmlns="http://commonmark\.org/xml/1\.0">\\n  <paragraph>\\n    <text xml:space="preserve">foo </text>\\n    <link destination="R:func\(\)" title="">\\n      <text xml:space="preserve">func\(\)</text>\\n    </link>\\n    <text xml:space="preserve"> bar</text>\\n  </paragraph>\\n</document>\\n"
  
  ── 2. Failure: commonmark picks up the various link references (@test-rd-markdow
  commonmark::markdown_xml\(add_linkrefs_to_md\(cases\[\[i\]\]\[1\]\)\) does not match "<link destination=\"R:obj\" title=\"\">\\s*<text>obj</text>".
  Actual value: "<\?xml version="1\.0" encoding="UTF-8"\?>\\n<!DOCTYPE document SYSTEM "CommonMark\.dtd">\\n<document xmlns="http://commonmark\.org/xml/1\.0">\\n  <paragraph>\\n    <text xml:space="preserve">foo </text>\\n    <link destination="R:obj" title="">\\n      <text xml:space="preserve">obj</text>\\n    </link>\\n    <text xml:space="preserve"> bar</text>\\n  </paragraph>\\n</document>\\n"
  
  ── 3. Failure: commonmark picks up the various link references (@test-rd-markdow
  commonmark::markdown_xml\(add_linkrefs_to_md\(cases\[\[i\]\]\[1\]\)\) does not match "<link destination=\"R:func\\(\\)\" title=\"\">\\s*<text>text</text>".
  Actual value: "<\?xml version="1\.0" encoding="UTF-8"\?>\\n<!DOCTYPE document SYSTEM "CommonMark\.dtd">\\n<document xmlns="http://commonmark\.org/xml/1\.0">\\n  <paragraph>\\n    <text xml:space="preserve">foo </text>\\n    <link destination="R:func\(\)" title="">\\n      <text xml:space="preserve">text</text>\\n    </link>\\n    <text xml:space="preserve"> bar</text>\\n  </paragraph>\\n</document>\\n"
  
  ── 4. Failure: commonmark picks up the various link references (@test-rd-markdow
  commonmark::markdown_xml\(add_linkrefs_to_md\(cases\[\[i\]\]\[1\]\)\) does not match "<link destination=\"R:obj\" title=\"\">\\s*<text>text</text>".
  Actual value: "<\?xml version="1\.0" encoding="UTF-8"\?>\\n<!DOCTYPE document SYSTEM "CommonMark\.dtd">\\n<document xmlns="http://commonmark\.org/xml/1\.0">\\n  <paragraph>\\n    <text xml:space="preserve">foo </text>\\n    <link destination="R:obj" title="">\\n      <text xml:space="preserve">text</text>\\n    </link>\\n    <text xml:space="preserve"> bar</text>\\n  </paragraph>\\n</document>\\n"
  
  ── 5. Failure: commonmark picks up the various link references (@test-rd-markdow
  commonmark::markdown_xml\(add_linkrefs_to_md\(cases\[\[i\]\]\[1\]\)\) does not match "<link destination=\"R:pkg::func\\(\\)\" title=\"\">\\s*<text>pkg::func\\(\\)</text>".
  Actual value: "<\?xml version="1\.0" encoding="UTF-8"\?>\\n<!DOCTYPE document SYSTEM "CommonMark\.dtd">\\n<document xmlns="http://commonmark\.org/xml/1\.0">\\n  <paragraph>\\n    <text xml:space="preserve">foo </text>\\n    <link destination="R:pkg::func\(\)" title="">\\n      <text xml:space="preserve">pkg::func\(\)</text>\\n    </link>\\n    <text xml:space="preserve"> bar</text>\\n  </paragraph>\\n</document>\\n"
  
  ── 6. Failure: commonmark picks up the various link references (@test-rd-markdow
  commonmark::markdown_xml\(add_linkrefs_to_md\(cases\[\[i\]\]\[1\]\)\) does not match "<link destination=\"R:pkg::obj\" title=\"\">\\s*<text>pkg::obj</text>".
  Actual value: "<\?xml version="1\.0" encoding="UTF-8"\?>\\n<!DOCTYPE document SYSTEM "CommonMark\.dtd">\\n<document xmlns="http://commonmark\.org/xml/1\.0">\\n  <paragraph>\\n    <text xml:space="preserve">foo </text>\\n    <link destination="R:pkg::obj" title="">\\n      <text xml:space="preserve">pkg::obj</text>\\n    </link>\\n    <text xml:space="preserve"> bar</text>\\n  </paragraph>\\n</document>\\n"
  
  ── 7. Failure: commonmark picks up the various link references (@test-rd-markdow
  commonmark::markdown_xml\(add_linkrefs_to_md\(cases\[\[i\]\]\[1\]\)\) does not match "<link destination=\"R:pkg::func\\(\\)\" title=\"\">\\s*<text>text</text>".
  Actual value: "<\?xml version="1\.0" encoding="UTF-8"\?>\\n<!DOCTYPE document SYSTEM "CommonMark\.dtd">\\n<document xmlns="http://commonmark\.org/xml/1\.0">\\n  <paragraph>\\n    <text xml:space="preserve">foo </text>\\n    <link destination="R:pkg::func\(\)" title="">\\n      <text xml:space="preserve">text</text>\\n    </link>\\n    <text xml:space="preserve"> bar</text>\\n  </paragraph>\\n</document>\\n"
  
  ── 8. Failure: commonmark picks up the various link references (@test-rd-markdow
  commonmark::markdown_xml\(add_linkrefs_to_md\(cases\[\[i\]\]\[1\]\)\) does not match "<link destination=\"R:pkg::obj\" title=\"\">\\s*<text>text</text>".
  Actual value: "<\?xml version="1\.0" encoding="UTF-8"\?>\\n<!DOCTYPE document SYSTEM "CommonMark\.dtd">\\n<document xmlns="http://commonmark\.org/xml/1\.0">\\n  <paragraph>\\n    <text xml:space="preserve">foo </text>\\n    <link destination="R:pkg::obj" title="">\\n      <text xml:space="preserve">text</text>\\n    </link>\\n    <text xml:space="preserve"> bar</text>\\n  </paragraph>\\n</document>\\n"
  
  ── 9. Failure: commonmark picks up the various link references (@test-rd-markdow
  commonmark::markdown_xml\(add_linkrefs_to_md\(cases\[\[i\]\]\[1\]\)\) does not match "<link destination=\"R:linktos4-class\" title=\"\">\\s*<text>linktos4-class</text>".
  Actual value: "<\?xml version="1\.0" encoding="UTF-8"\?>\\n<!DOCTYPE document SYSTEM "CommonMark\.dtd">\\n<document xmlns="http://commonmark\.org/xml/1\.0">\\n  <paragraph>\\n    <text xml:space="preserve">foo </text>\\n    <link destination="R:linktos4-class" title="">\\n      <text xml:space="preserve">linktos4-class</text>\\n    </link>\\n    <text xml:space="preserve"> bar</text>\\n  </paragraph>\\n</document>\\n"
  
  ── 10. Failure: commonmark picks up the various link references (@test-rd-markdo
  commonmark::markdown_xml\(add_linkrefs_to_md\(cases\[\[i\]\]\[1\]\)\) does not match "<link destination=\"R:pkg::s4-class\" title=\"\">\\s*<text>pkg::s4-class</text>".
  Actual value: "<\?xml version="1\.0" encoding="UTF-8"\?>\\n<!DOCTYPE document SYSTEM "CommonMark\.dtd">\\n<document xmlns="http://commonmark\.org/xml/1\.0">\\n  <paragraph>\\n    <text xml:space="preserve">foo </text>\\n    <link destination="R:pkg::s4-class" title="">\\n      <text xml:space="preserve">pkg::s4-class</text>\\n    </link>\\n    <text xml:space="preserve"> bar</text>\\n  </paragraph>\\n</document>\\n"
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 524 SKIPPED: 0 FAILED: 10
  1.  Failure: commonmark picks up the various link references (@test-rd-markdown-links.R#97) 
  2.  Failure: commonmark picks up the various link references (@test-rd-markdown-links.R#97) 
  3.  Failure: commonmark picks up the various link references (@test-rd-markdown-links.R#97) 
  4.  Failure: commonmark picks up the various link references (@test-rd-markdown-links.R#97) 
  5.  Failure: commonmark picks up the various link references (@test-rd-markdown-links.R#97) 
  6.  Failure: commonmark picks up the various link references (@test-rd-markdown-links.R#97) 
  7.  Failure: commonmark picks up the various link references (@test-rd-markdown-links.R#97) 
  8.  Failure: commonmark picks up the various link references (@test-rd-markdown-links.R#97) 
  9.  Failure: commonmark picks up the various link references (@test-rd-markdown-links.R#97) 
  10. Failure: commonmark picks up the various link references (@test-rd-markdown-links.R#97) 
  
  Error: testthat unit tests failed
  Execution halted