Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crop_spam unable to download #66

Open
kauedesousa opened this issue Jan 30, 2024 · 1 comment
Open

crop_spam unable to download #66

kauedesousa opened this issue Jan 30, 2024 · 1 comment

Comments

@kauedesousa
Copy link

Hi @rhijmans, the function crop_spam() returns an error indicating that it is unable to connect to the server. Do you know if this can be solved from your side or is something related to IFPRI / SPAM server?

cas <- crop_spam("cassava", "area", path=tempdir(), TRUE)

trying URL 'https://s3.amazonaws.com/mapspam/2017/ssa/v1.1/geotiff/spam2017v1r1_ssa_harv_area.geotiff.zip'
Error in utils::download.file(url = url, destfile = filename, quiet = quiet,  : 
  cannot open URL 'https://s3.amazonaws.com/mapspam/2017/ssa/v1.1/geotiff/spam2017v1r1_ssa_harv_area.geotiff.zip'
download failed

This is the R session info

> sessioninfo::session_info()
─ Session info ────────────────────────────────────────────────────────────────────────────────────────────────────
 setting  value
 version  R version 4.2.1 (2022-06-23)
 os       macOS 14.0
 system   x86_64, darwin17.0
 ui       RStudio
 language (EN)
 collate  en_US.UTF-8
 ctype    en_US.UTF-8
 tz       Europe/Paris
 date     2024-01-30
 rstudio  2023.06.2+561 Mountain Hydrangea (desktop)
 pandoc   2.9.1.1 @ /usr/local/bin/pandoc

─ Packages ────────────────────────────────────────────────────────────────────────────────────────────────────────
 package     * version date (UTC) lib source
 cli           3.6.1   2023-03-23 [1] CRAN (R 4.2.0)
 codetools     0.2-18  2020-11-04 [1] CRAN (R 4.2.1)
 geodata     * 0.5-3   2022-12-01 [1] CRAN (R 4.2.0)
 Rcpp          1.0.10  2023-01-22 [1] CRAN (R 4.2.0)
 rstudioapi    0.14    2022-08-22 [1] CRAN (R 4.2.0)
 sessioninfo   1.2.2   2021-12-06 [1] CRAN (R 4.2.0)
 terra       * 1.7-65  2023-12-15 [1] CRAN (R 4.2.0)

 [1] /Library/Frameworks/R.framework/Versions/4.2/Resources/library
@rhijmans
Copy link
Member

I think this has been fixed in the development version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants