- This topic has 3 replies, 3 voices, and was last updated 3 years, 4 months ago by .
Viewing 3 reply threads
Viewing 3 reply threads
You must be logged in to reply to this topic. Login here
Home › Forums › TMHG 517 Statistical methods in spatial epidemiology 2020 › Course Forums › Cannot install spData package in Rstudio
I tried to do Assignment 1.2 R-INLA coding by run code from “TMHG517_classproject.R” file.
The library(spdep) needs “SpData” Package and when I tried to install it failed. When I try to load library(spData) it is stuck and will not go anywhere. How can I install spData package in order to continue my coding?
My RStudio version is 1.4.1717 and my R version is 4.0.5
Thank you
I just found out myself that updating both R and RStudio to the latest version can fix the problem. Thank you
The R version may need an update when the package has changed in a way that is incompatible with the version of R you have installed. Glad you find a way to solve the issue. Cheers!
I have the same problem the error shows
Error: package ‘sf’ required by ‘spdep’ could not be found
How to solve the problem?
I already update my R and Rstudio to lastet version.
You must be logged in to reply to this topic. Login here