Removed library(name) imports from the top of functions and changed imported functions to reference package name using the :: operator directly. This is the standard way to import libraries for packages. This way only necessary functions will be loaded.
Replaced function imports from meta-libraries (tidyverse and tidymodels) with the specific libraries as per feedback from tiff.
Added dependencies to package using use_package(). We need to do this to properly add the library to our R package. It is the equivalent of poetry add in python.
Fixed examples in roxygen docstrings. There is a check that runs on the examples provided in the docstring so all variable names must be properly defined even in the examples that are commented out.
TODO:
@Saule-Atymtayeva Can you re-write your example in autoimpute_na? The old one was referencing an undefined variable toy_df and it was throwing an error during the check. Example variables can be defined using tibble or data.frame as seen in the other functions.
::
operator directly. This is the standard way to import libraries for packages. This way only necessary functions will be loaded.tidyverse
andtidymodels
) with the specific libraries as per feedback from tiff.use_package()
. We need to do this to properly add the library to our R package. It is the equivalent ofpoetry add
in python.TODO:
@Saule-Atymtayeva Can you re-write your example in
autoimpute_na
? The old one was referencing an undefined variabletoy_df
and it was throwing an error during the check. Example variables can be defined usingtibble
ordata.frame
as seen in the other functions.