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.
Run Code Online (Sandbox Code Playgroud)
在这里你可以找到答案。 https://github.com/drsimonj/twidlr/issues/16
总结起来有很多选择:
fun <- utils::getFromNamespace("fun", "pkg")。当你构建一个包时,函数的顺序和位置是不相关的(除非你使用 S4 或其他奇异的对象)。| 归档时间: |
|
| 查看次数: |
207 次 |
| 最近记录: |