包正在使用中,不会安装

时间:2016-03-01 11:01:41

标签: r

使用R x64 3.2.3我收到此消息:

> install.packages("stringr")
Installing package into ‘C:/Users/leews/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
Error: package ‘stringr’ is in use and will not be installed

我必须做什么?

1 个答案:

答案 0 :(得分:2)

尝试

detach("package:stringr", unload = TRUE)
install.packages("stringr", dependencies=TRUE)