joeroe / rpaleoclim Goto Github PK
View Code? Open in Web Editor NEWR interface for PaleoClim paleoclimate data
Home Page: https://rpaleoclim.joeroe.io/
License: Other
R interface for PaleoClim paleoclimate data
Home Page: https://rpaleoclim.joeroe.io/
License: Other
Amongst other things, rgdal is on the way out: https://cran.r-project.org/web/packages/rgdal/index.html
As suggested in ?download.file
.
The PaleoClim URLs don't seem to be particularly stable, so having tests to check that the downloads still work is essential for this package.
See #2. Switching from download.file()
to curl::curl_download()
might fix this for free.
First release:
usethis::use_cran_comments()
Title:
and Description:
@return
and @examples
Authors@R:
includes a copyright holder (role 'cph')Prepare for release:
git pull
devtools::build_readme()
urlchecker::url_check()
devtools::check(remote = TRUE, manual = TRUE)
devtools::check_win_devel()
rhub::check_for_cran()
git push
Submit to CRAN:
usethis::use_version('major')
devtools::submit_cran()
Wait for CRAN...
git push
usethis::use_github_release()
usethis::use_dev_version()
git push
For rOpenSci submission #9.
For rOpenSci submission #9. See https://r-pkgs.org/man.html?q=donttest#man-functions
Could be useful.
Defaulting to fs::path_temp
as now, but allowing the user to e.g. cache files in the working directory to reuse between sessions.
git hash: 49e77025
Important: All failing checks above must be addressed prior to proceeding
Package License: MIT + file LICENSE
I'm having issues downloading specific raster sets (at any resolution). These include the LGM and MPWP right now, but may also include others that I haven't tested yet. Any ideas why this might be?
trying URL 'http://sdmtoolbox.org/paleoclim.org/data/chelsa_LGM/chelsa_LGM_v1_2B_r10m.zip'
Content type 'application/zip' length 17468981 bytes (16.7 MB)
downloaded 63 KB
Error in utils::download.file(url, tmpfile, "auto") :
download from 'http://sdmtoolbox.org/paleoclim.org/data/chelsa_LGM/chelsa_LGM_v1_2B_r10m.zip' failed
In addition: Warning messages:
1: In utils::download.file(url, tmpfile, "auto") :
downloaded length 65380 != reported length 17468981
2: In utils::download.file(url, tmpfile, "auto") :
URL 'http://sdmtoolbox.org/paleoclim.org/data/chelsa_LGM/chelsa_LGM_v1_2B_r10m.zip': Timeout of 60 seconds was reached
Maybe. Might be overkill. https://github.com/r-lib/memoise
Error in curl::curl_download(url, tmpfile, quiet = quiet) :
Timeout was reached: [] Connection timed out after 10000 milliseconds
I sporadically see this error in R CMD check workflows, in the example for paleoclim()
. It varies from whether 1-3 will fail, but it's always at least one, and usually Windows. I haven't been able to reproduce it locally, even on very spotty connections and even after htting SDMtoolbox.org repeatedly.
The timeout is on receiving any response from the server, not downloading the file, so this is a separate issue from #2.
According to jeroen/curl#72 it could have something to do with bad DNS but I find it a bit surprising this would affect GitHub Actions.
I've tried working around it by dropping the example, but this is holding up submission to rOpenSci (#9) and is obviously not ideal anyway. I've also tried \donttest, but since this is now run on CRAN and using R CMD check --as-cran, it doesn't help. \dontrun maybe would, but it isn't recommended for CRAN submissions apparently.
Next to try: increasing the timeout limit manually per jeroen/curl#173
raster
stopped using rgdal
and rgeos
in favour of terra
in September 2022; rgdal
, rgeos
and maptools
will be archived in October 2023 (see: https://r-spatial.org/r/2023/05/15/evolution4.html, https://r-spatial.github.io/evolution/). When rgdal
is not on the library path, this is the CMD check log:
00check.log with test details:
testthat.Rout.zip
Almost certainly, both the Suggests: listing and the test are left over from before #10.
Prepare for release:
git pull
urlchecker::url_check()
devtools::build_readme()
devtools::check(remote = TRUE, manual = TRUE)
devtools::check_win_devel()
revdepcheck::revdep_check(num_workers = 4)
cran-comments.md
git push
Submit to CRAN:
usethis::use_version('patch')
devtools::submit_cran()
Wait for CRAN...
usethis::use_github_release()
usethis::use_dev_version(push = TRUE)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.