If you wish to cite cancensus:

von Bergmann J, Shkolnik D, Jacobs A (2021). cancensus: R package to access, retrieve, and work with Canadian Census data and geography. R package version 0.4.2, https://mountainmath.github.io/cancensus/.

Corresponding BibTeX entry:

  @Manual{,
    author = {Jens {von Bergmann} and Dmitry Shkolnik and Aaron
      Jacobs},
    title = {cancensus: R package to access, retrieve, and work with
      Canadian Census data and geography},
    year = {2021},
    note = {R package version 0.4.2},
    url = {https://mountainmath.github.io/cancensus/},
  }