Skip to content

Instantly share code, notes, and snippets.

@sjkiss
Created January 16, 2019 17:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sjkiss/f17e340ff7f02e9229eb87e3c4284f6b to your computer and use it in GitHub Desktop.
Save sjkiss/f17e340ff7f02e9229eb87e3c4284f6b to your computer and use it in GitHub Desktop.
Error in Statistics Canada's Web Data Service
#install.packages('rjson')
library(rjson)
#This is the sample URL from your web data help page.
census_url<-'https://www12.statcan.gc.ca/rest/census-recensement/CPR2016.json?lang=E&dguid=2016A000011124&topic=1&notes=0'
#This returns an unexpected character
fromJSON(file=census_url)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment