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

Unable to create new directory #22

Open
hrlai opened this issue Nov 30, 2024 · 1 comment · May be fixed by #23
Open

Unable to create new directory #22

hrlai opened this issue Nov 30, 2024 · 1 comment · May be fixed by #23

Comments

@hrlai
Copy link

hrlai commented Nov 30, 2024

create_safedata_dir fails seemingly due to outdated API addresses?

Removing the .json extension from the download_gazetteer and download_location_aliases functions seemed to work, but not for download_index.

library(safedata)
#> SAFE package reminder: Please set SAFE data directory using set_safedata_dir()
create_safedata_dir("C:/Users/hrl23/collaboration/tmp")
#> Failed to download index:
#> URL error: 400
#> Failed to download gazetteer:
#> URL error: 400
#> Failed to download location aliases:
#> URL error: 400
#> Could not download required files: SAFE data directory not created

Created on 2024-11-30 with reprex v2.1.1

@hrlai
Copy link
Author

hrlai commented Nov 30, 2024

Ah so if I changed the following it seems to work:
develop...hrlai:safedata:develop

The directory is created, but with the following error:

> create_safedata_dir("../tmp")
Safe data directory created
Loading and caching index
Error in eval(substitute(expr), data, enclos = parent.frame()) : 
  object 'zenodo_concept_id' not found

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

Successfully merging a pull request may close this issue.

1 participant