getSpatialData
getSpatialData copied to clipboard
Error: Failed to install 'getSpatialData' from GitHub:
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!
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