Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 如何在不重新启动 R 的情况下卸载包?
要将包加载到 R 中,我们可以使用library(.)或require(.). 如何在编码会话期间禁用包。我想要的东西是相反的require(.)。
library(.)
require(.)
我想也许你正在寻找detach(package:splines, unload = TRUE).
detach(package:splines, unload = TRUE)
正如您可能从下面的评论中收集到的那样,请务必仔细阅读详细信息部分,?detach以确保您确切知道在使用或不使用unloadandforce参数时会发生什么。
?detach
unload
force