Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Blacklist .git folder in R CMD check

Tags:

git

r

I'm pretty sure that a lot of you guys out there are using git as CVS. How do you bypass the following warning on R CMD check:

* checking for executable files ... WARNING
Found the following executable file(s):

I tried by putting .git folder in .Rbuildignore, but with no luck.

I reckon that this one is trivial for all of you who are using Github to host R packages. Any ideas?

like image 959
aL3xa Avatar asked Jan 16 '12 23:01

aL3xa


People also ask

How do I find hidden .git files?

Use the terminal to display the . git directory with the command ls -a . The ls command lists the current directory contents and by default will not show hidden files. If you pass it the -a flag, it will display hidden files.

How do I view a .git folder?

The contents of the . git folder can be viewed using the tree command in a Windows Operating System. To switch from the git bash terminal to Windows terminal, type the cmd command. The user is presented with the Windows terminal now.


1 Answers

Yes, use .Rbuildignore and then build the .tar.gz and then check the .tar.gz and not the source directory.

like image 136
Dirk Eddelbuettel Avatar answered Oct 23 '22 04:10

Dirk Eddelbuettel