I am trying to download population count data (100m pixel size) from WorldPop using the R
package wpgpDownloadR
. The code:
# install.packages("devtools")
devtools::install_github("wpgp/wpgpDownloadR")
library(wpgpDownloadR)
wd = "path"
r <- wpgpGetCountryDataset(ISO3 = "GRC",
covariate = "ppp_2018"
destDir = path)
But i am getting this error:
Error: unexpected symbol in:
" covariate = "ppp_2018"
destDir"
Even if I change the destDir
argument to destDir = "the/whole/path"
I am getting the same error. Also, I tried the method
argument without success. I have tried this solution, but still the same error. Any ideas why?