gpt4 book ai didi

r - 无法卸载软件包

转载 作者:行者123 更新时间:2023-12-04 13:03:44 25 4
gpt4 key购买 nike

嗨,我卸载了一个软件包,但它看起来仍然可以访问,有人可以帮忙吗?感谢你!

> remove.packages("RODBC")
Removing package from ‘E:/R/R-3.3.3/library’
(as ‘lib’ is unspecified)

> library(RODBC)
# no error. it's still there

> attr(sessionInfo()$otherPkgs$RODBC, "file")
[1] "E:/R/R-3.3.3/library/RODBC/Meta/package.rds"
# it really is there...


> remove.packages("dplyr")
Removing package from ‘E:/R/R-3.3.3/library’
(as ‘lib’ is unspecified)
> library(dplyr)
Error in library(dplyr) : there is no package called ‘dplyr’
# this guy is removed


> .Library
[1] "E:/R/R-3.3.3/library"

> .libPaths()
[1] "E:/R/R-3.3.3/library"

RODBC 是否有可能正在使用中以至于无法删除?

最佳答案

我以前也遇到过这种情况,我认为我所做的就是从计算机上的文件资源管理器中找到包的文件夹并手动删除它

关于r - 无法卸载软件包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44681383/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com