Closed SNAnalyst closed 3 years ago
Have you tried building using vanilla R methods, i.e.
R CMD build SNA21
to get a SNA21_1.2.3.tar.gz? You know it works if it contains a inst/doc/cheatsheet.html
file.
Thanks. Yes, that works fine. Does this mean this is really a devtools issue? Or the interaction between devtools and R.rsp?
Sounds like devtools to me.
OK, thanks.
This is a question similar to this issue, but that didn't show any solution.
I followed the instructions from the R.rsp vignette and added to my vignettes folder of my SNA21 package: cheatsheet.html.asis cheatsheet.html
and added to DESCRIPTION:
The file "cheatsheet.html.asis" contains:
I have no inst/doc folder inside the package.
Then, I check and build the package using
devtools::check(SNA21)
and install withdevtools::install_local()
. The package works just fine, except that the vignette does not show up. When I tryvignette(package = "SNA21")
I get the message "no vignette found" and no vignette is indeed linked to in the documentation index of the package,I use R 4.1.0, RStudio 1.4.1717, devtools 2.4.2, and R.rsp 0.44.0.
What could cause this behavior?