Using RStudio "Build", but Not * .Rcheck Generated

I just started using RStudio assembly validation and used it to create one package. I started with the second package, and this one does not work. When a build attempt occurs, I get updates, such as:

* checking whether package ‘< package >’ can be installed ... ERROR
Installation failed.
See ‘/home/user/git/< package >.Rcheck/00install.out’ for details.
* DONE
Status: 1 ERROR

The problem is that the specific <package> .Rcheck folder does not exist, and also the files that should be in it (i.e. 00install.out and 00check.log). Also, when I write <package>, the actual name of my package is displayed instead.

I had a vision of the folders during the build of the package, and I saw the .Rcheck folder, and then immediately disappeared. I was even able to view the file 000install.out, but it has not yet detected any errors.

It seems that the entire Rcheck folder is deleted when the assembly fails, leaving without a trace, which caused the error.

Has anyone else experienced this? I am using RStudio version 0.99.902 with R version 3.3.1 on Arch Linux.

+4
source share
1 answer

My approach is as follows:

Go to "Tools" → "Global Options" → "Packages", and then see if "Browse the Rcheck directory after a failed R CMD check" is checked. You will also find other useful options, for example. "Clearing output after successful validation of R CMD."

enter image description here

+3
source

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


All Articles