GlobalFishingWatch / forcedlabor

forcedlabor: forced labor model package
GNU General Public License v3.0
0 stars 0 forks source link

installation warning #1

Closed rociojoo closed 2 years ago

rociojoo commented 2 years ago
W  checking whether package ‘forcedlabor’ can be installed (7.4s)
   Found the following significant warnings:
     Warning: replacing previous import ‘recipes::step_downsample’ by ‘themis::step_downsample’ when loading ‘forcedlabor’
   See ‘/tmp/RtmplQGTz9/forcedlabor.Rcheck/00install.out’ for details.
natemiller commented 2 years ago

@rociojoo I had a look and I think you can do something like this

#' @rawNamespace import(PACKAGE, except = foo)

So for the case of this warning...where you want to load all of recipes, except for step_downsample, I think you should be able to do this in the roxygen imports for the ml_training function

#' @rawNamespace import(recipes, except = step_downsample)
rociojoo commented 2 years ago

It worked, thanks @natemiller !