Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
174 views
in Technique[技术] by (71.8m points)

r - Rbuildignore and Excluding Directories

I am interested in excluding two directories instdocs and instexamples while building and installing the package. I know that an easy way out is just to move docs and examples to the root directory and they won't get installed. However, I want to keep them in inst for other reasons.

I tried adding the following lines to .Rbuildignore

inst/docs
inst/examples

I use RStudio v 0.97 and devtools to build and install the package from source. However, when I do that, I still see that instdocs and instexamples get installed. I tried different regexes, but nothing seemed to work.

Am I doing something wrong?

question from:https://stackoverflow.com/questions/13182634/rbuildignore-and-excluding-directories

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

This appears to be an issue with RStudio. Using install from the devtools package seems to cause the folders to be ignored. Building and installing directly from the command line also seems to cause the folders to be ignored. The 'Build & Reload' button in RStudio, however, seems to not take into account the .Rbuildignore for those folders.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...