Skip to content
Prev 7634 / 12125 Next

[R-pkg-devel] package with datasets requiring sp

If a package is declared in Imports, it means that there must be some kind
of import expression in the NAMESPACE file. For example:

import(sp) # imports the whole sp package, probably NOT what you want
importFrom(sp, Polygon)  # import object Polygon from sp namespace

Theoretically, your import statement could import any of the sp namespace
objects, but it probably makes far more sense to import the datasets from
sp that you're using

On Mon, Jan 17, 2022, 11:11 Aur?lie Siberchicot <
aurelie.siberchicot at univ-lyon1.fr> wrote: