After starting the R CMD check, the mypackage.Rcheck directory with the PDF manual disappeared

I installed Rtools v.31 and MKTeX2.9 on my laptop before creating my R package. After I performed the R CMD check, a directory named mypackage.Rcheck and the source file mypackage_1.x.tar.gz appeared, and while the assembly function of the RStudio assembly checks everything, there is no warning or error message, but at the end when said (as follows), the corresponding mypackage.Rcheck directory, which should contain the PDF, disappeared:

  • checking the pdf version of the manual ... OK
  • DONE NOTE. There were 3 notes. See 'C: /.../ package / mypackage.Rcheck / 00check.log' for details.

CM CMD Verification Successful

I thought it could be a version conflict between Rtools and R, because I use R13.1.2 and Rtools v.31, where on http://cran.r-project.org/bin/windows/Rtools/ , he said that the image is not frozen (that I do not understand what this means). But I tried all the proposed compatible version pairs between Rtools and R and still couldn't get it to work. Therefore, I think this disappearance of mypackage.RCheck is not related to version conflict.

I do not think this is a MiKTeX problem, because, apparently, the PDF is being created, but therefore deleted. I also tried using -options in the R CMD check, but there is no way to force a pdf manual to be generated, plus a PDF file was generated at some point. I also read one post on this website suggesting to use the Rutils Rd2pdf function: "R CMD Rd2pdf mypackage", but I cannot work in windows, and the Rutils package is not available for R13.1.2.

can someone suggest the source of the problem or if they saw this problem before and were able to fix it?

+6
source share
2 answers

In RStudio: Tools → Global Options → Packages. There is a setting to "Clear output after successful validation of R CMD". If this check box is selected, it deletes the package.Rcheck folder after a successful check. If you clear this option, the package.Rcheck folder will not be deleted, and you will find the pdf reference manual there.

+19
source

A common problem for the mysterious disappearance of files from R tarballs is the random indication that they should be ignored in the .Rbuildignore file. The lines in this file are regular expressions, so dropping the ^ and $ anchors may result in more files than you planned. For instance,

vig.e 

matches vignette.pdf (because there are no anchors for the beginning and end of the name, and the dot means "any character".

0
source

Source: https://habr.com/ru/post/978294/


All Articles