Reputation: 2443
checkpoint("2019-12-11",R.version = "3.5.3",scanForPackages = FALSE,verbose = TRUE,use.knitr=FALSE, auto.install.knitr = FALSE, scan.rnw.with.knitr = TRUE,forceInstall = FALSE, forceProject = FALSE, use.lock = TRUE)
r$> packageVersion('checkpoint')
[1] '0.4.9'
r$> library(knitr)
r$> library(rmarkdown)
r$> library(MASS)
Error in value[[3L]](cond) :
Package 'MASS' version 7.3.51.3 cannot be unloaded:
Error in unloadNamespace(package) : namespace 'MASS' is imported by 'vegan' so cannot be unloaded
When I face this error,I remove.packages('MASS')
and reinstall,but cannot solve this problem.
How to solve this problem?
Upvotes: 2
Views: 3233
Reputation: 2443
unloadNamespace('mirt')
unloadNamespace('vegan')
solved this problem.
But I am curious when I open R terminal in vs code,then sessionInfo()
,output as below:
[1] Rcpp_1.0.1 lattice_0.20-38 permute_0.9-5 MASS_7.3-51.1 grid_3.5.3 jsonlite_1.6.1 nlme_3.1-137 stats4_3.5.3 vegan_2.5-4 Matrix_1.2-15 [11] pbivnorm_0.6.0 splines_3.5.3 tools_3.5.3 dcurver_0.9.1 compiler_3.5.3 GPArotation_2014.11-1 Deriv_3.8.5 parallel_3.5.3 mnormt_1.5-5 cluster_2.0.7-1 [21] mgcv_1.8-27 lavaan_0.6-3
I don't know how this packages loaded automatically.
Upvotes: 3