You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can I check this pull request?
This PR adds a command Update/reinstall package to the package tree view that reinstalls/updates the package. This is done by a simple call to install.packages('PKG_NAME') and does not check if the package is installed from CRAN and does not compare versions.
I added a command button to the entry Install CRAN Package (I felt it fits better there, since the other commands next to Help topics by Package only affect the tree view but don't install/modify any actual packages).
As you suggested, the command executes update.packages(ask=FALSE, repos=<CRAN_URL>). On my machine this worked for most packages but some packages seem to cause problems. I think this is caused by them being loaded somewhere, so that their .DLL files cannot be overwritten. I don't think there is a simple solution for this, so I wouldn't try to fix this, but if you have any ideas, feel free to push/suggest a fix.
I added a command button to the entry Install CRAN Package (I felt it fits better there, since the other commands next to Help topics by Package only affect the tree view but don't install/modify any actual packages).
Yes, makes good sense.
As you suggested, the command executes update.packages(ask=FALSE, repos=<CRAN_URL>). On my machine this worked for most packages but some packages seem to cause problems. I think this is caused by them being loaded somewhere, so that their .DLL files cannot be overwritten. I don't think there is a simple solution for this, so I wouldn't try to fix this, but if you have any ideas, feel free to push/suggest a fix.
I think it is a known issue in Windows. I guess we could leave it as is at the moment.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What problem did you solve?
#529
How can I check this pull request?
This PR adds a command
Update/reinstall packageto the package tree view that reinstalls/updates the package. This is done by a simple call toinstall.packages('PKG_NAME')and does not check if the package is installed from CRAN and does not compare versions.