tidyfun / tf

S3 classes and methods for tidy functional data
https://tidyfun.github.io/tf/
GNU Affero General Public License v3.0
6 stars 2 forks source link

Duplicate imports #94

Open m-muecke opened 1 month ago

m-muecke commented 1 month ago

Nitpicking, but there are duplicate package imports for purrr https://github.com/tidyfun/tf/blob/dev/R/tfd-class.R#L1 and https://github.com/tidyfun/tf/blob/dev/R/tfd-class.R#L1 while also import the functions https://github.com/tidyfun/tf/blob/dev/R/fwise.R#L17and using it with the explicit namespace: https://github.com/tidyfun/tf/blob/dev/R/fwise.R#L51 the same is true for the mgcv and stats imports.

Suggestion would be to move the whole package imports (i.e. @import purrr to the R/tf-package.R file like done in dplyr or other many other packages: https://github.com/tidyverse/dplyr/blob/main/R/dplyr.R#L6