We want to include features that require hard-to-install dependencies, but we know some users won't have those dependencies -- so the features should be conditional on the existence of the dependencies.
One approach would be to have an extension of tiltPlot, e.g. tiltMaps. Another approach would be to work around it inside the package with something like if(require("sf")) # do something. I'm pretty sure packages in r-lib and tidyverse do that in a few places, so we could research how they do it.
We want to include features that require hard-to-install dependencies, but we know some users won't have those dependencies -- so the features should be conditional on the existence of the dependencies.
One approach would be to have an extension of tiltPlot, e.g. tiltMaps. Another approach would be to work around it inside the package with something like
if(require("sf")) # do something
. I'm pretty sure packages in r-lib and tidyverse do that in a few places, so we could research how they do it.