Skip to content
Prev 6660 / 12125 Next

[R-pkg-devel] Why .Rbuildignore doesn't ignore?

I don't have any strong suggestions.  Things I'd look for:

- is the .Rbuildignore filename spelled correctly?  It was in your 
message, but maybe there's something different in the actual file on 
disk.  Running file.exists(".Rbuildignore") should return TRUE if your 
working directory is the main package directory.

- is it encoded properly?  I don't know that this would cause trouble, 
but it might.  Run tools::showNonASCIIfile(".Rbuildignore")  to see if 
there are any non-ASCII chars in it.

- are the filename patterns entered correctly?  Spaces or punctuation 
before or after the patterns will be taken to be part of the pattern.
If your working directory is the top level package directory, this 
emulates the test R CMD build uses:

  files <- list.files()
  files[tools:::inRbuildignore(files, ".")]

It should list all the files that you want to ignore.

Duncan Murdoch
On 04/03/2021 2:06 p.m., Jose Barrera wrote: