Skip to content
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

Global option to avoid any dependencies (?) #147

Closed
gaborcsardi opened this issue Aug 29, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@gaborcsardi
Copy link
Member

commented Aug 29, 2018

A known problem on Windows, is that if a package with a shared library is loaded, the library DLL is locked, and it cannot be overwritten. R CMD INSTALL still succeeds (with an extra message), and all other package files are installed, but the DLL is not, that belongs to the old version of the package.

This is even a problem in a clean session, if some (optional) recursive dependency or remotes is being installed/updated, one might end up with a broken installation.

If we could have a global option or env var to suppress loading optional dependencies, then we could handle all of these failures. (Updating remotes itself is fine, because it has no compiled code.)

jimhester added a commit to jimhester/remotes that referenced this issue Aug 30, 2018

Add `REMOTES_NO_EXTERNAL` environment variable
To control use of external packages

Fixes r-lib#147

jimhester added a commit to jimhester/remotes that referenced this issue Aug 30, 2018

Add `REMOTES_NO_EXTERNAL` environment variable
To control use of external packages

Fixes r-lib#147

@jimhester jimhester added the feature label Aug 30, 2018

jimhester added a commit to jimhester/remotes that referenced this issue Aug 31, 2018

Add `R_REMOTES_STANDALONE` environment variable
To force remotes to use no optional dependencies.

Fixes r-lib#147

jimhester added a commit to jimhester/remotes that referenced this issue Aug 31, 2018

Add `R_REMOTES_STANDALONE` environment variable
To force remotes to use no optional dependencies.

Fixes r-lib#147

jimhester added a commit that referenced this issue Sep 4, 2018

Add `R_REMOTES_STANDALONE` environment variable (#148)
To force remotes to use no optional dependencies.

Fixes #147

jimhester added a commit that referenced this issue Sep 5, 2018

Use pkg_installed() instead of is_installed()
Commit f986e72 removed is_installed()
but did not replace all its calls with a suitable alternative.

See #147, #148.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.