-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rcmdcheck could be faster by not copying entries from Rbuildignore #74
Comments
We could use the same approach as Maybe this belongs to the pgkbuild package, and rcmdcheck should just call that. |
I think this is OK now, because we use pkgbuild, without copying anything, and pkgbuild supports |
Please reopen if you see problems. |
Hey @gaborcsardi, I still see the same issue reported: the current way R CMD check (and related commands) work is by copying all the files in the directory and then removing the files to be ignored. This can be really slow if the ignored files are big (as in the case of big example datasets that I use for some of my packages). In a quick look through the code you mentioned from R source, maybe it would be enough to get the files to be ignored (via the |
This was discussed here: r-lib/pkgbuild#59 It is not an issue with rcmdcheck, but with base R, and it is hard to implement it for ourselves. |
I develop a few packages whose repositories can contain a large number of files (or a number of large files). For example
data-raw
might contain large raw data files, ordocs/
might contain a large number of files to produce the webpage. The majority of these files are irrelevant for R CMD check (since they're excluded by.Rbuildignore
). However, because the build process first moves the whole package to a temporary directory, then builds with respect to.Rbuildignore
, the process is unnecessarily slow. For one package, just excludingdata-raw
anddocs
before copying to a temporary directory shaved over 2 minutes fromrcmdcheck
.Copying the package without copying entries in
.Rbuildignore
is non-trivial and the script I wrote to do this is a bit messy, so I want to flag this suggestion before I make a pull request that's considered too complicated. (The script currently is about 100 lines and would replace onefile.copy
line inbuild.R
.)rcmdcheck/R/build.R
Line 7 in ad42561
The text was updated successfully, but these errors were encountered: