-
Notifications
You must be signed in to change notification settings - Fork 35
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
Can we somehow avoid copying large directories that will not be in the package? #59
Comments
|
The alternative is that we copy first, only what we need to, and then call |
A triple-copy, and we don't get to keep the Who from R-core would be supportive of a patch? |
I found r-lib/rcmdcheck#90, then this, and they revealed that my newfound problem was caused by an enormous revdep/ folder. Just sharing this for a +1 that I got bit by this and struggled to understand it. If simpler than not copying, could a message be printed if there are large folders present that may cause the delay in check/build? |
I revive this discussion as I also am interested in |
I think the files that are in |
They are still copied by base R with |
@krlmlr Sure, but they won't be in the built |
Yes and they are all copied when we do |
...or a |
Unfortunately this is quite cumbersome to fix, because as mentioned above, the bug is really in base R, pkgbuild just calls So we would need to re-implement |
...or find a sponsor in R core? |
Any updates on this? I think this could be an important element to project builds. |
I doubt R core will go for it. The patch would involve essentially implementing a version of I think the biggest animal is "revdeps". So maybe |
Just a note that this would also allow us to fix the annoying messages like:
|
What if we created a directory tree full of symlinks (on non-Windows) and passed that to It seems that we need to:
20 lines of code? What corner cases have I missed? With a clean base-R-only implementation we could prototype here and suggest a patch to R-core (where it really belongs). |
@krlmlr To me this smells like something that would have a lot of corner cases. But if you implement it, then we can make it opt in and experiment with it. |
This is currently an opt-in feature, and you need to set the `PKG_BUILD_COPY_METHOD=link` environment variable ot turn it on. It can also be configured via an option or a `DESCRIPTION` entry. See `?build` or `README.md`. Closes #59.
There is now a PR for this: #150, and it will be in the next release, happening in a couple of days. It is currently opt-in. It is very cumbersome to implement this, so feedback is appreciated. Please turn it on via setting the Maybe it would be useful to have a summary of the excluded files on the screen, while building the package? Btw. empty directories are currently not excluded, because |
From r-lib/rcmdcheck#90
The text was updated successfully, but these errors were encountered: