Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 440
Henk Avatar asked May 01 '15 07:05

Henk


1 Answers

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.

like image 86
jasmyace Avatar answered Oct 22 '22 03:10

jasmyace