The function "list_datasets" in "download_data_from_coat_data_portal.R" is behaving rather unhelpfully when one is trying to access/download a dataset one does not have access to .
I have discovered this trying to download from the goose module with the wrong access code, and it may be that this is only an issue with this particular module because it does not contain any public datasets.
What happens is that the call to "ckanr::package_search" only returns metadata on protocol and the subsequent dplyr wrangling returns an error that the column "temporal_start" is not found. This is a very unhelpful error in this case.
For improving user-friendliness, I think it would be great to include some "catches" into the data download function suite that check access and actually return a useful error if one is trying to download a dataset that one does not have access to.
The function "list_datasets" in "download_data_from_coat_data_portal.R" is behaving rather unhelpfully when one is trying to access/download a dataset one does not have access to .
I have discovered this trying to download from the goose module with the wrong access code, and it may be that this is only an issue with this particular module because it does not contain any public datasets.
What happens is that the call to "ckanr::package_search" only returns metadata on protocol and the subsequent dplyr wrangling returns an error that the column "temporal_start" is not found. This is a very unhelpful error in this case.
For improving user-friendliness, I think it would be great to include some "catches" into the data download function suite that check access and actually return a useful error if one is trying to download a dataset that one does not have access to.