如何从R中卸载RJSONIO包。。我尝试了
> remove.packages("RJSONIO")
Removing package from ‘/Users/akshit/Library/R/3.2/library’
(as ‘lib’ is unspecified)
Error in remove.packages : there is no package called ‘RJSONIO’
但如果我检查包裹的路径,我会得到这个
> path.package("RJSONIO")
[1] "/Users/XXXXX/Library/R/3.2/library/RJSONIO"
请尝试分离(包:RJSONIO)。它对我有效。请注意以下试错:
> library(RJSONIO)
> path.package("RJSONIO")
[1] "/home/XXXX/R/x86_64-pc-linux-gnu-library/3.2/RJSONIO"
> remove.packages("RJSONIO")
Removing package from ‘/home/XXXX/R/x86_64-pc-linux-gnu-library/3.2’
(as ‘lib’ is unspecified)
> path.package("RJSONIO")
[1] "/home/XXXX/R/x86_64-pc-linux-gnu-library/3.2/RJSONIO"
> detach(package:RJSONIO)
> path.package("RJSONIO")
Error in path.package("RJSONIO") : none of the packages are loaded
> library(RJSONIO)
Error in library(RJSONIO) : there is no package called ‘RJSONIO’
> path.package("RJSONIO")
Error in path.package("RJSONIO") : none of the packages are loaded