search for: inrbuildignore

Displaying 1 result from an estimated 1 matches for "inrbuildignore".

2017 Sep 22
0
R CMD build errors if files cannot be moved, even if they are in Rbuildignore
...uch long files, R CMD build will not work, meaning that the data-raw folder has to be manually stashed before building. I propose that the following line if (!file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE)) should be replaced by something like the following include <- allfiles[!inRbuildignore(allfiles, pkgdir)] # possibly the rest of the exclude conds too mov2Tdir <- function(x) { file.copy(x, file.path(Tdir, x), copy.date = TRUE) } if (any(!vapply(include, mov2Tdir, FUN.VALUE = logical(1)))) This change would preserve the error condition, but not erroneously when failing to copy fi...