我正在尝试使用USABoundaries包来绘制地图,但在下载UsaBoundariesData时遇到了问题。当我输入下面这样的内容时
library(USAboundaries)
OH_cong <- us_congressional(states = "OH", resolution = "high")我收到这个错误消息:
The USAboundariesData package needs to be installed.
Install the USAboundariesData package?
1: Yes
2: No
Selection: Yes
Installing the USAboundariesData package.
Installing package into ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0’
(as ‘lib’ is unspecified)
Error in value[[3L]](cond) :
Failed to install the USAboundariesData package.
Please try installing the package for yourself using the following command:
install.packages("USAboundariesData", repos = "http://packages.ropensci.org", type = "source")
> install.packages("USAboundariesData", repos = "http://packages.ropensci.org", type = "source")
Installing package into ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0’
(as ‘lib’ is unspecified)
Error in install.packages : error reading from connection如果任何人有任何有用的信息,将不胜感激!
发布于 2020-10-20 22:44:03
试着这样做:
devtools::install_github("ropensci/USAboundariesData")https://stackoverflow.com/questions/62438256
复制相似问题