'URL '/help/library/<package>/r/html/00Index.html' not found when using `devtools::load_all()`
I am using devtools::load_all
as a workflow to iteratively make a package. However, I cannot seem to be able to view the package documentation using ?
or help(package=package_name)
until I install the package. The error I get is:
No documentation for ‘function’ in specified packages and libraries
and
URL '/help/library//r/html/00Index.html'
any suggestions on how to resolve this?
Thanks!
Solution 1:[1]
I guess the help(package=package_name) do nothing than open (in case of Windows) this file for you:
C:\Users\YourName\Documents\R\win-library\4.1\package_name\html\00Index.html
devtools::load_all
make your latest functions available to you for testing without installing the package (i.e. the html file was not updated, and masked because it was belonged to the old version of your own package). To view your latest documentation (i.e. make a new version html), you can devtools::document()
and check your package working directory \man\Functions_name.rd
, OR, devtools::install()
and help(package=package_name)
Solution 2:[2]
Just restarting r session solved my problem.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Huanyuan Zhang |
Solution 2 | Lejin Tian |