tidymodels / spatialsample

Create and summarize spatial resampling objects 🗺
https://spatialsample.tidymodels.org
Other
71 stars 5 forks source link

Use delayedAssign to force load (fixes #63) #70

Closed mikemahoney218 closed 2 years ago

mikemahoney218 commented 2 years ago

Inspired by https://github.com/allisonhorst/palmerpenguins/pull/36, this PR fixes #63 by using a delayedAssign to force-load sf when loading boston_canopy. This is a workaround for https://github.com/r-lib/pillar/issues/552#issuecomment-1154590016

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.

github-actions[bot] commented 2 years ago

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.