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

Reproducibility issue in get_census #127

Closed
dshkol opened this issue Jul 13, 2019 · 3 comments
Closed

Reproducibility issue in get_census #127

dshkol opened this issue Jul 13, 2019 · 3 comments
Labels

Comments

@dshkol
Copy link
Collaborator

dshkol commented Jul 13, 2019

Related to #126

The following code throws a parsing error now.

dataset <- "CA16"

regions_list10 <- list_census_regions(dataset) %>% 
  filter(level=="CMA") %>% 
  top_n(10,pop) %>% 
  as_census_region_list

csd_geo <- get_census(dataset, level = 'CSD', regions = regions_list10)

Warning: 1 parsing failure.
row col expected actual file
9 rpid a double s_1_35_35 literal data

Data looks fine in download, but the warning is unexpected.

This is from code written pre-CRAN release.

@dshkol dshkol added the bug label Jul 13, 2019
@mountainMath
Copy link
Owner

Hm. I don't get that warning. Can you refresh your cache?

@dshkol
Copy link
Collaborator Author

dshkol commented Jul 13, 2019

csd_geo <- get_census(dataset, level = 'Regions', regions = regions_list10, use_cache = FALSE)

Querying CensusMapper API...
Downloading: 500 B Warning: 1 parsing failure.
row col expected actual file
9 rpid a double s_1_35_35 literal data

Still there.

This is cancensus 0.1.8

@mountainMath
Copy link
Owner

Fixed in #123

@dshkol dshkol closed this as completed Jul 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants