How can I remove all installed packages except base
and recommended
?
相关问题
- R - Quantstart: Testing Strategy on Multiple Equit
- Using predict with svyglm
- Reshape matrix by rows
- Extract P-Values from Dunnett Test into a Table by
- split data frame into two by column value [duplica
相关文章
- How to convert summary output to a data frame?
- How to plot smoother curves in R
- Paste all possible diagonals of an n*n matrix or d
- ess-rdired: I get this error “no ESS process is as
- How to use doMC under Windows or alternative paral
- dyLimit for limited time in Dygraphs
- Saving state of Shiny app to be restored later
- How to insert pictures into each individual bar in
Instead of
just do
which is what I did on my R 3.0.0 (using
lib.loc=...
to point to my different local directories). This will update everything you have and which it can still get from repos such as CRAN. Forinstall_git()
etc, you are out of luck and need to reinstall.But either way you do not need to remove the packages first.
Be CAREFUL! And read the docs before you try this:
By default this will remove packages from the first library in your
.libPaths()
.If on Linux, the easiest thing is probably to remove the library folder, which by default is located in
/home/yourusername/R
.On Fedora, for example, it is called
x86_64-redhat-linux-gnu-library
. If the folder/home/yourusername/R/x86_64-redhat-linux-gnu-library
is deleted, it is automatically recreated at the following start of R. All default libraries are regularly available.Here is a solution available in the R-Blogger:
Here is the link for the original post: https://www.r-bloggers.com/how-to-remove-all-user-installed-packages-in-r/