I'm do not understand an error I have when using ggtern in a function of the package I built.
In my DESCRIPTION file, I'm calling ggtern in the Imports.
In my function, with roxygen, I'm calling @import ggtern to.
But if I only load my package, without loading ggtern in the global environnement through library(ggtern) I have the following error:
Error in UseMethod("scale_clone") :
no applicable method for 'scale_clone' applied to an object of class "c('tern_T', 'continuous_ternary', 'scale')"
Nicolas,
I'm do not understand an error I have when using
ggtern
in a function of the package I built. In my DESCRIPTION file, I'm calling ggtern in the Imports. In my function, with roxygen, I'm calling@import ggtern
to. But if I only load my package, without loadingggtern
in the global environnement throughlibrary(ggtern)
I have the following error:Could you have any idea to help me about it ?
Thanks ! Gilles