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.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.