如何从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"
答案 0 :(得分:1)
请尝试分离(包: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