getSpatialData icon indicating copy to clipboard operation
getSpatialData copied to clipboard

Error: Failed to install 'getSpatialData' from GitHub:

Open khanzainub opened this issue 4 years ago β€’ 1 comments

i tried to install and load in library "getSpatialData " package with codes as follows:

devtools::install_github("16EAGLE/getSpatialData") library(getSpatialData)

and threw prompt:

Enter one or more numbers, or an empty line to skip updates:1 # I chose 1

Now it gave error:

Skipping 1 packages not available: XML Installing 26 packages: digest, vctrs, rlang, pillar, ellipsis, ps, backports, pkgbuild, withr, Rcpp, sp, plyr, tibble, scales, tidyr, dplyr, reshape2, xfun, sf, raster, leafem, sys, RcppArmadillo, rgdal, XML, httr Installing packages into β€˜C:/Users/Zainab Khan/Documents/R/win-library/3.6’ (as β€˜lib’ is unspecified) Error: Failed to install 'getSpatialData' from GitHub: (converted from warning) package β€˜XML’ is not available (for R version 3.6.0)

Someone Please help!

khanzainub avatar Aug 16 '20 04:08 khanzainub

Hi, the needed 'XML' package seems not to be available for your R version (3.6.0), which the last line of the error suggests. Please find more information on this dependency here: https://cran.r-project.org/web/packages/XML/index.html I suggest to install getSpatialData with R version >=4.0.0. If you want to avoid replacing R 3.6.0 (because required in other projects) you may also use different versions depending on the project. Installation of getSpatialData should work under 4.0.0

hfisser avatar Sep 07 '20 14:09 hfisser