Displaying 1 result from an estimated 1 matches for "mov2tdir".
Did you mean:
mountdir
2017 Sep 22
0
R CMD build errors if files cannot be moved, even if they are in Rbuildignore
...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 files which will never be built.
This may or may not make the unlink(allfil...