jacobbien/litr-project

Fix `add_function_hyperlinks()`

jacobbien opened this issue · 0 comments

The function add_function_hyperlinks() should not add hyperlinks for functions that have <pkg>:: before them, unless <pkg> is the name of the package currently being defined. To see why this is an issue, notice the hyperlinks in rmarkdown::render() and devtools::document() in create-litr.html:

Screen Shot 2022-06-07 at 11 03 11 PM

These will link to the definition of litr::render() and litr::document(). We should also create a test in create-litr.Rmd to demonstrate that rmarkdown::render() (and devtools::document() are not hyperlinked).