简体   繁体   中英

Package development : location of pdf manual and vignette

When building mypackage, everything seems to work:

library(devtools)
build(vignettes = T, manual = T)

* checking for file ‘/storage/Documents/client/validate/mypackage/DESCRIPTION’ ... OK
* preparing ‘mypackage’:
* checking DESCRIPTION meta-information ... OK
* installing the package to build vignettes
* creating vignettes ... OK
* checking for LF line-endings in source and make files
* checking for empty or unneeded directories
* building ‘mypackage_0.1.tar.gz’

[1] "/storage/Documents/client/validate/mypackage_0.1.tar.gz"

However I can't find neither the PDF manual nor the vignette.

Vignette: followed workflow as described here , using RStudio / devtools / markdown. However:

vignette("mypackage") Warning message: vignette 'mypackage' not found

For the PDF manual I have tried this , but no success.

So, my question is: where can I find the PDF manual and the vignette?

I can find my PACKAGE-manual.pdf , where throughout PACKAGE is my package name, by first going to

C:\\Users\\USERNAME\\AppData\\Local\\Temp\\

within the Windows folder directory. You may have to enable hidden folders and files to see this. Within this folder are many many temp folders and other such things. Sort by date, and scroll down to where the folders are. The most recent one is the one you probably want; the ones that prefix with a "Rtmp" are the ones created by R.

Within the (probably) most recent Rtemp[blah] should be a folder entitled PACKAGE.Rcheck . In that PACKAGE.Rcheck folder should be the manual pdf PACKAGE-manual.pdf , assuming it was successfully created.

The full path string on my computer (for this package-creation run) is

C:\\Users\\USERNAME\\AppData\\Local\\Temp\\RtmpG0713j\\PACKAGE.Rcheck\\PACKAGE-manual.pdf .

You might have to search through a couple of Rtmp[blah] folders before you get the right one.

Not sure quite where RStudio puts it, but in a bare bones check operation the pdf version of the manual should be in a folder called mypackage.Rcheck If you created a mypackage-package.R file then when the package is installed, ?mypackage should lead you to the html version of the manual. The vignette you can get by installing your package and doing vignette("mypackage") .

我不知道手册,但是如果你使用'build and reload'按钮在rstudio上构建(在check button1附近,那么如果正确构建,那么晕映应该最终会出现在你的r库文件夹的'yourpackage'子文件夹中,我认为在inst / doc子子文件夹中。另外,对于小插曲你是否尝试使用devtools::build_vignettes构建它们?通常对我devtools::build_vignettes

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM