CoryMcCartan / blockpop

Estimate Census Block Populations for 2020
https://corymccartan.github.io/blockpop
GNU General Public License v3.0
3 stars 0 forks source link

bl_download_2010_vars("AK") not working #3

Open jaeyk opened 3 years ago

jaeyk commented 3 years ago

Hi Cory,

bl_download_2010_vars("AK") is not working due to the API problem. I guess it has something to do with the Census variables. Is there an easy fix for this problem?

Here's also session info, in case if this is useful.

> sessionInfo()
R version 4.1.1 (2021-08-10)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 21.04

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.9.0
LAPACK: /usr/lib/x86_64-linux-gnu/openblas-openmp/liblapack.so.3
CoryMcCartan commented 3 years ago

Could you share the error message that you get and any other code you are running as part of this?

jaeyk commented 3 years ago

This is the error message I got:

Getting data from the 2010 decennial Census
No encoding supplied: defaulting to UTF-8.
Error : Your API call has errors.  The API message returned is .
Using Census Summary File 1
Error in UseMethod("select") : 
  no applicable method for 'select' applied to an object of class "character"

I ran it in a fresh session and only loaded the {blockpop} library.

CoryMcCartan commented 3 years ago

OK, we'll take a look!

christopherkenny commented 2 years ago

@CoryMcCartan, if you're looping over counties, that's the issue. If you just loop over tidycensus fips, then AK has counties that are listed that didn't exist in 2010, but do now.