ropensci / ruODK

ruODK: An R Client for the ODK Central API
https://docs.ropensci.org/ruODK/
GNU General Public License v3.0
42 stars 13 forks source link

Make settings fun again - including loud but intelligible yelling if something is missing #16

Closed florianm closed 5 years ago

florianm commented 5 years ago

Feature

All functions using settings should fail with a meaningful error message.

Source https://github.com/ropensci/software-review/issues/335 @maelle

The current error messages are not informative in the absence of credentials, 
i.e. I get Error in curl::curl_fetch_memory(url, handle = handle) : <url> malformed 
if I run project_list() now without credentials. 
If there's no system variables set and no credentials passed either, 
the functions should fail with an informative error message.
florianm commented 5 years ago

It's probably time to bite the ckanr_setup/ckanr_settings apple I've avoided so far: