VeruGHub / easyclimate

Easy access to high-resolution daily climate data for Europe
https://verughub.github.io/easyclimate/
GNU General Public License v3.0
46 stars 1 forks source link

Implement time out in check_server #42

Closed Pakillo closed 1 year ago

Pakillo commented 1 year ago

check_server() sometimes keeps running for minutes, waiting for a response from the server. I've implemented a time out mechanism so check_server will stop trying after 30 seconds. This requires adding another dependency (R.utils) but that does not increase dependency load (see https://cran.r-project.org/web/packages/R.utils/index.html).

I've also fixed a couple minor things raised by RCMD-check, and improved tests to avoid warnings