problem installing 'getSpatialData '

I'm novice in R, while I'm trying to install getSpatial package and getting error or someting in blue
#> Enter one or more numbers, or an empty line to skip updates:library(getSpatialData)

Codes I used is :
#> devtools::install_github("16EAGLE/getSpatialData")

#> library(getSpatialData)

Some one please Help!

Works on ubuntu (Note: no # before the > prompt, just enter the lines shown)

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

What's the specific error?

Enter one or more numbers, or an empty line to skip updates:library(getSpatialData)

Above line is the error code.

What is the specific error from

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

I'm using the same code you mention here. This exact code is throwing some sort of error i.e.

"Enter one or more numbers, or an empty line to skip updates:library(getSpatialData)"

Please guide me to over come this if possible.

Are you doing this from the console? If so, when you get the prompt, hit enter.

That is not an error, It's a prompt asking you to make a selection, just run the first command and then choose an option, type the corresponding number for the option you have chosen and press enter. I would recommend typing 1 and pressing Enter

devtools::install_github("16EAGLE/getSpatialData")
Downloading GitHub repo 16EAGLE/getSpatialData@HEAD
These packages have more recent versions available.
It is recommended to update all of them.
Which would you like to update?

1: All                          
2: CRAN packages only           
3: None                         
4: ps    (1.3.3 -> 1.3.4) [CRAN]
5: tidyr (1.1.0 -> 1.1.1) [CRAN]
6: dplyr (1.0.0 -> 1.0.1) [CRAN]

Enter one or more numbers, or an empty line to skip updates:

Sir, still nor working, I chose 1 and updated All,

Error I recieve is as followes:

Skipping 1 packages not available: XML
Installing 26 packages: sys, ps, backports, withr, rlang, pkgbuild, digest, vctrs, pillar, ellipsis, Rcpp, sp, plyr, tibble, scales, tidyr, dplyr, reshape2, xfun, sf, raster, leafem, httr, RcppArmadillo, rgdal, XML
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)

The error message is self explanatory, you need to install XML package but this requires a newer version of R (>= 4.0.0) so you need to update your R version.

1 Like

Thanks a lot for your help!

Solution!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.