cancensus
cancensus copied to clipboard
readr should be an import vs a suggest
Running the example query in get_census on a very clean R ecosystem install.
census_data <- get_census(dataset='CA16', regions=list(CMA="59933"),
vectors=c("v_CA16_408","v_CA16_409","v_CA16_410"),level='CSD')
Error in loadNamespace(x) : there is no package called ‘readr’
There should either be a check for whether readr is installed and use an alternative otherwise, or just move it into a dependency.
Good call. Same argument could be made for 'sf'. Some people might just want to access non-spatial data and could get away without sf installed, not sure that's worth not requiring sf though.