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

getAttributes fails for complex data packages #5

Open
juddpatterson opened this issue Jun 16, 2021 · 0 comments
Open

getAttributes fails for complex data packages #5

juddpatterson opened this issue Jun 16, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@juddpatterson
Copy link
Collaborator

juddpatterson commented Jun 16, 2021

getAttributes fails if a data package has more than one csv/xml combo.

Example:

getDataPackage(2285123, Secure = FALSE)
getAttributes(2285123, "csv", "eml")
Error: 'data/raw/2285123/c("HY2019_SFCN_diatoms_TP_metadata.xml", "HY2019_SFCN_vegetation_metadata.xml")' does not exist in current working directory ('C:/Judd/R/DSTools-master/DSTools-master').

The two xml files referenced above do exist in that location, but the combined vector of "both at once" produces the error. The function needs to be improved to handle more than one file check or a parameter added so the function only attempts to operate on a single data file.

@juddpatterson juddpatterson added the bug Something isn't working label Oct 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant