{"action":"created","issue":{"url":"https://api.github.com/repos/walkerke/tidycensus/issues/104","repository_url":"https://api.github.com/repos/walkerke/tidycensus","labels_url":"https://api.github.com/repos/walkerke/tidycensus/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/walkerke/tidycensus/issues/104/comments","events_url":"https://api.github.com/repos/walkerke/tidycensus/issues/104/events","html_url":"https://github.com/walkerke/tidycensus/issues/104","id":358732560,"node_id":"MDU6SXNzdWUzNTg3MzI1NjA=","number":104,"title":"Error when trying to get subject table","user":{"login":"arilamstein","id":50784,"node_id":"MDQ6VXNlcjUwNzg0","avatar_url":"https://avatars2.githubusercontent.com/u/50784?v=4","gravatar_id":"","url":"https://api.github.com/users/arilamstein","html_url":"https://github.com/arilamstein","followers_url":"https://api.github.com/users/arilamstein/followers","following_url":"https://api.github.com/users/arilamstein/following{/other_user}","gists_url":"https://api.github.com/users/arilamstein/gists{/gist_id}","starred_url":"https://api.github.com/users/arilamstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arilamstein/subscriptions","organizations_url":"https://api.github.com/users/arilamstein/orgs","repos_url":"https://api.github.com/users/arilamstein/repos","events_url":"https://api.github.com/users/arilamstein/events{/privacy}","received_events_url":"https://api.github.com/users/arilamstein/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-10T18:05:43Z","updated_at":"2018-09-10T18:52:48Z","closed_at":null,"author_association":"NONE","body":"I am attempting to use Tidycensus to get income information for Michigan ZCTAs using table S1902.\r\n\r\nI am getting an error that I don't understand:\r\n````\r\n> df = get_acs(geography=\"zcta\", variables=\"S1902\", year=2016, state=\"michigan\")\r\nGetting data from the 2012-2016 5-year ACS\r\nUsing the ACS Subject Tables\r\nUsing FIPS code '26' for state 'Michigan'\r\nClient error Bad Request Client error: (400) Bad Request\r\nError in as.character(x) : \r\n  cannot coerce type 'closure' to vector of type 'character'\r\n````\r\n\r\nAt first I thought that the error might be with trying to use a subject table (IIRC the acs package only gets detailed tables). But the output leads me to believe that the tidycensus package can indeed work with subject tables.\r\n\r\nCan you advise? \r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/walkerke/tidycensus/issues/comments/420021243","html_url":"https://github.com/walkerke/tidycensus/issues/104#issuecomment-420021243","issue_url":"https://api.github.com/repos/walkerke/tidycensus/issues/104","id":420021243,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDAyMTI0Mw==","user":{"login":"walkerke","id":4872833,"node_id":"MDQ6VXNlcjQ4NzI4MzM=","avatar_url":"https://avatars0.githubusercontent.com/u/4872833?v=4","gravatar_id":"","url":"https://api.github.com/users/walkerke","html_url":"https://github.com/walkerke","followers_url":"https://api.github.com/users/walkerke/followers","following_url":"https://api.github.com/users/walkerke/following{/other_user}","gists_url":"https://api.github.com/users/walkerke/gists{/gist_id}","starred_url":"https://api.github.com/users/walkerke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/walkerke/subscriptions","organizations_url":"https://api.github.com/users/walkerke/orgs","repos_url":"https://api.github.com/users/walkerke/repos","events_url":"https://api.github.com/users/walkerke/events{/privacy}","received_events_url":"https://api.github.com/users/walkerke/received_events","type":"User","site_admin":false},"created_at":"2018-09-10T18:52:48Z","updated_at":"2018-09-10T18:52:48Z","author_association":"OWNER","body":"Thanks @mfherman!  Also I don't have the `table` parameter enabled for Subject Tables so a specific variable ID (or vector of IDs) is required as you show - though I could incorporate this.  \r\n\r\ntidycensus 0.8.1 is now returning the error messages returned by the Census API, which tend to be general but better than the httr 400 error.  "}}
{"actor":{"display_login":"walkerke"}}