Unexported object imported by a ':::' call: 'tsfeatures:::scalets'

Viewed 504

After doing devtools::check(cran=TRUE) I got this warning. I saw others say we cannot use ":::" on CRAN. So, how to fix this problem? Thank you for helping!

> checking dependencies in R code ... NOTE
  Unexported object imported by a ':::' call: 'tsfeatures:::scalets'
    See the note in ?`:::` about the use of this operator.
1 Answers

Here you could find the answer. https://github.com/drsimonj/twidlr/issues/16

Summing up there are many options:

  • Contact package authors and ask them to export the relevant function.
  • Copy the function source code and cite the author appropriately. Use roxygen2 @references or manually \references in man file. In my opinion reference at the level of function is satisfactory if this function is one of many in your package. Remember that the specific function might depends on many others from the package, so then a lot of code have to be copied.
  • Another trick is using getFromNamespace() fun <- utils::getFromNamespace("fun", "pkg"). When you building a package the order and place of functions is not relevant (unless you use S4 or other exotic objects).
Related