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
issue with non-writable available package index #1171
Comments
Thanks for the bug report! I want As a workaround, you could place the available packages index in a shared location, with something like:
And that could be added to your R installation's |
Perhaps the index could be placed in a location like this by default:
And system administrators could allow that directory to be considered readable + writable by all users by default if desired? |
Thanks for these ideas! I tested the option of setting |
I haven't had a chance yet to test your fix yet 998c043 but I was also looking at my Line 187 in e24dfb3
I wonder if the |
Thanks for the heads up -- I'll take a look at that. |
(I think it should be okay to make these index files shared by default, rather than checking |
Finally had a chance to test out these commits. Thank you for making these changes! It seems like this will work well and I like the approach taken. |
Great to hear -- thank you! |
Main issue:
renv::install("pkgname")
hangs indefinitely onrenv
>= 0.17.0 due to my non-standard setup.Details:
I have a large
renv
cache being used by many people. It's defined using theRENV_PATHS_ROOT
environmental variable. That location is read-only* (for most users). Forrenv
prior to 0.17.0 that would result in successful installs (simply a symlink) if the package existed in the cache and an error if it did not (because it can't write there).Now, however, it seems to hang due to
renv:::available_packages
.I found that if I run
options(renv.index.enabled=FALSE)
the old behavior is restored.I'm wondering if there could be a solution where the index will automatically be used if it can succeed (maybe just a
file.access
test or something for write-ability) and disabled otherwise? Essentially to avoid having to specify this option in every project.I realize this is probably a very uncommon setup so understand if this isn't worth it.
* The reason my setup is like this is because we have the
renv
cache mounted to Docker environments and for technical reasons the mounts need to be read-only. There is a separate process (where the cache is writable) to add new packages.Thanks for the awesome package!
The text was updated successfully, but these errors were encountered: