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

"dp" dataset not working #551

Closed
phcantis opened this issue Jan 2, 2024 · 2 comments
Closed

"dp" dataset not working #551

phcantis opened this issue Jan 2, 2024 · 2 comments

Comments

@phcantis
Copy link

phcantis commented Jan 2, 2024

Some time ago (this year) i was able to use "dp" as a variable in the sumfile argument to retrieve sex and age data at the tract level for the 2020 decennial census. However, it seems to not work anymore. When I use "dp" in the load_variables function, I get the following error:

Error: lexical error: invalid char in json text.
<!doctype html>
(right here) ------^

When using "dp" as input in the get_decennial() function, it reports that the PL dataset is being queried instead:

get_decennial(geography = "tract", variables = "DP1_0001C" , sumfile = "dp", state = "36", county = c("005", "047", "061", "081", "085"), year = 2020)

Getting data from the 2020 decennial Census
Using the PL 94-171 Redistricting Data summary file
Error in UseMethod("gather") :
no applicable method for 'gather' applied to an object of class "character"

@walkerke
Copy link
Owner

This works fine for me, tested against the most recent GitHub version. Perhaps try updating the package?

@phcantis
Copy link
Author

It seems like that-s it. I run the line in another laptop and it worked, so they probably have different versions. Thank you for the catch!

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

No branches or pull requests

2 participants