This is a simpler implementation than in palmerpenguins, because there's no way to not have sf installed if spatialsample is on your computer. As such, we don't need to check for sf, we just need to load it.
This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.
Inspired by https://github.com/allisonhorst/palmerpenguins/pull/36, this PR fixes #63 by using a delayedAssign to force-load
sf
when loadingboston_canopy
. This is a workaround for https://github.com/r-lib/pillar/issues/552#issuecomment-1154590016This is a simpler implementation than in
palmerpenguins
, because there's no way to not havesf
installed ifspatialsample
is on your computer. As such, we don't need to check forsf
, we just need to load it.