Bruno Avila
Bruno Avila

Reputation: 296

Error in package: sp when starting RStudio

When starting RStudio the following message appears: Loading required package: sp. I try to install the sp package and the message appears:

Warning in install.packages :
  package ‘sp’ is in use and will not be installed

That way, I can not install it. Also, because of this error, I'm having trouble calling the dplyr package. How do I fix this error?

Upvotes: 1

Views: 3059

Answers (1)

Rushabh Patel
Rushabh Patel

Reputation: 2764

Try this-

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

Upvotes: 1

Related Questions