Comments (6)
One possible culprit might be using http instead of https. I received this same error (tried turning VPN off, restarting RStudio, etc.) and in the end was able to install it when I used:
install.packages("rnaturalearthhires", repos = "https://packages.ropensci.org", type = "source")
instead of the http url suggested by the error message. @aneal01 @dylancraven can you test this out?
from rnaturalearth.
Both URLs work for me:
install.packages("rnaturalearthhires", repos = "http://packages.ropensci.org", type = "source") install.packages("rnaturalearthhires", repos = "https://packages.ropensci.org", type = "source")Is anyone else facing this issue?
I didn't try with type = "source"
to be honest, but afair the https link worked without it while the http link didn't. I tried again and now both work (downloading Windows binary) and also work with type = "source"
(and building from source).
Might have been a temporary issue at ropensci build chains, but imho you should use the https protocol in all cases regardless of http working or not.
from rnaturalearth.
It is kind of hard to tell from your formatting, but did you try:
install.packages("rnaturalearthhires", repos = "http://packages.ropensci.org", type = "source")
Judging by this:
Error in install.packages : error reading from connection
I'd guess there was a network or internet error.
I just gave it a go and it successfully installed:
trying URL 'http://packages.ropensci.org/src/contrib/rnaturalearthhires_0.2.0.tar.gz'
Content type 'application/x-gzip' length 21922598 bytes (20.9 MB)
downloaded 20.9 MB
* installing *source* package 'rnaturalearthhires' ...
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
converting help for package 'rnaturalearthhires'
finding HTML links ... done
coastlines html
countries html
map_units html
rnaturalearthhires html
sovereignty html
states html
** building package indices
** testing if installed package can be loaded from temporary location
*** arch - i386
*** arch - x64
** testing if installed package can be loaded from final location
*** arch - i386
*** arch - x64
** testing if installed package keeps a record of temporary installation path
* DONE (rnaturalearthhires)
from rnaturalearth.
I have experienced similar problems as those mentioned by aneal01 above, for installing "rnaturalearth":
double free or corruption (out)
install.packages("rnaturalearth")
Aborted (core dumped)
ERROR: lazy loading failed for package ‘rnaturalearth’
- removing ‘/home/dylan/R/x86_64-pc-linux-gnu-library/4.2/rnaturalearth’
Warning in install.packages :
installation of package ‘rnaturalearth’ had non-zero exit status
and for
install.packages("rnaturalearth", repos = "http://packages.ropensci.org", type = "source")
*** caught segfault ***
address 0x55b654000000, cause 'memory not mapped'
An irrecoverable exception occurred. R is aborting now ...
Segmentation fault (core dumped)
ERROR: lazy loading failed for package ‘rnaturalearth’
- removing ‘/home/dylan/R/x86_64-pc-linux-gnu-library/4.2/rnaturalearth’
Warning in install.packages :
installation of package ‘rnaturalearth’ had non-zero exit status
Here is the sessionInfo
R version 4.2.0 (2022-04-22)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.4 LTS
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.9.0
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.9.0
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=es_CL.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=es_CL.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_PAPER=es_CL.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=es_CL.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] Rcpp_1.0.8.3 plyr_1.8.7 pillar_1.7.0 compiler_4.2.0 rgnparser_0.2.0
[6] iterators_1.0.14 class_7.3-20 sys_3.4 tools_4.2.0 uuid_1.1-0
[11] nlme_3.1-157 jsonlite_1.8.0 lifecycle_1.0.1 tibble_3.1.7 lattice_0.20-45
[16] pkgconfig_2.0.3 rlang_1.0.2 foreach_1.5.2 DBI_1.1.2 cli_3.3.0
[21] curl_4.3.2 crul_1.2.0 parallel_4.2.0 e1071_1.7-9 xml2_1.3.3
[26] dplyr_1.0.9 stringr_1.4.0 generics_0.1.2 vctrs_0.4.1 hms_1.1.1
[31] classInt_0.4-3 grid_4.2.0 tidyselect_1.1.2 data.table_1.14.2 reshape_0.8.9
[36] httpcode_0.3.0 glue_1.6.2 sf_1.0-7 R6_2.5.1 fansi_1.0.3
[41] conditionz_0.1.0 tzdb_0.3.0 readr_2.1.2 purrr_0.3.4 magrittr_2.0.3
[46] codetools_0.2-18 ellipsis_0.3.2 units_0.8-0 bold_1.2.0 assertthat_0.2.1
[51] taxize_0.9.100 ape_5.6-2 utf8_1.2.2 KernSmooth_2.23-20 stringi_1.7.6
[56] proxy_0.4-26 crayon_1.5.1 zoo_1.8-10
from rnaturalearth.
I ran into the same error today when trying the http link. Changing to https solved the problem and I was able to download and install.
Imho the function check_rnaturalearthhires()
and related should use https by default, as that's a safer protocol.
from rnaturalearth.
Both URLs work for me:
install.packages("rnaturalearthhires", repos = "http://packages.ropensci.org", type = "source")
install.packages("rnaturalearthhires", repos = "https://packages.ropensci.org", type = "source")
Is anyone else facing this issue?
from rnaturalearth.
Related Issues (20)
- Release rnaturalearth 1.0.0
- Wrong link in About HOT 1
- Pre-compute vignettes so it does no error on CRAN if resource is not available
- Package suggested but not available for checking: ‘rnaturalearthhires’
- Update package version for rnaturalearthdata and rnaturalearthhires to 1.0.0
- Unexpected behavior of medium size country polygon download / while small & large resolution work as advertised HOT 4
- ne_countries message:maptools, rgdal, and rgeos, underpinning this package will retire shortly message HOT 4
- United States missing using geostationary satellite view projection only HOT 5
- pkgdown
- Deprecate `sp`
- Add support for `vect` of the `terra` package
- Use `pkgdown`
- Function helpers to provide users with available downloadable files
- Change to `sf`/`spatvector` in `rnaturalearthhires` and `rnaturalearthhires`
- sf MULTIPOLYGONs not mergeable across countries HOT 6
- Chatham Islands with New Zealand HOT 4
- `ne_download()` fails to read raster objects HOT 2
- `ne_download()` should not warn about `sp` for raster objects or if `load = FALSE` HOT 1
- `ne_download()` doens't return filename HOT 5
- Invalid geometry world: Loop 0 is not valid HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rnaturalearth.