Hello,
I think I found a bug in the latest version of roxygen2 (4.0.0). I'm running R 3.1.0 on Windows.
I'm writing a package that uses figures in the documentation and I do so by following the answer in
http://stackoverflow.com/a/7953949. That answer points to
http://cran.r-project.org/doc/manuals/R-exts.html#Figures that says "
http://cran.r-project.org/doc/manuals/R-exts.html#Figures".
If you create that folder, the new version of roxygen2 tries to access and modify the folder as a file and throws an error. For example,
> upgradeRoxygen()
Error in file(con, "r") : cannot open the connection
In addition: Warning message:
In file(con, "r") : cannot open file './man/figures': Permission denied
It looks like folders should be excluded from roxygen functions, if this is really a bug.
Alternatively, is there a preferable way to include images?
Thanks in advance,
Eduardo