Avoid loading specific packages within the function

When developing a function for a package that is based on functions of other packages, how to avoid including those packages in the function. For example:

Load the necessary packages

library(sf)
library(h3jsr)

You need to declare your dependencies in the DESCRIPTION file, and potentially also in the NAMESPACE file. See more at

1 Like

Thank you very much Gabor.