0

如何从 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"
4

1 回答 1

1

请尝试detach(package: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
于 2016-08-23T18:02:05.050 回答