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

TADA_DataRetrieval will not work for multiple states #401

Closed
6 tasks
hillarymarler opened this issue Feb 16, 2024 · 0 comments · Fixed by #406
Closed
6 tasks

TADA_DataRetrieval will not work for multiple states #401

hillarymarler opened this issue Feb 16, 2024 · 0 comments · Fixed by #406

Comments

@hillarymarler
Copy link
Collaborator

Describe the bug

If you try to query for more than one state, you receive this error message: Bad Request (HTTP 400).299 WQP "The value of statecode=US:NA must match the format (?:([A-Z]{2}):)?([0-9]{1,2})"
Error in attr(retval, "queryTime") <- Sys.time() :
attempt to set an attribute on NULL

To Reproduce

library(TADA)

R5 <- c("IL", "IN")


TADAProfile <- TADA_DataRetrieval(statecode = R5, 
                                  startDate = "2019-05-01", 
                                  endDate = "2019-05-07", 
                                  applyautoclean = FALSE)

Expected behavior

Return data from both IL and IN

Reminders for TADA contributors addressing this issue

New features should include all of the following work:

  • Create the function/code.

  • Document all code using comments to describe what is does.

  • Create tests in tests folder.

  • Create help file using roxygen2 above code.

  • Create working examples in help file (via roxygen2).

  • Add to appropriate vignette (or create new one).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant