cancensus icon indicating copy to clipboard operation
cancensus copied to clipboard

readr should be an import vs a suggest

Open dshkol opened this issue 9 months ago • 1 comments

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.

dshkol avatar Jun 07 '25 23:06 dshkol

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.

mountainMath avatar Jun 08 '25 00:06 mountainMath