[r-prompt]>devtools::check()
...
❯ checking dependencies in R code ... WARNING
'::' or ':::' import not declared from: ‘reshape2’
'library' or 'require' call not declared from: ‘data.table’
'library' or 'require' call to ‘data.table’ in package code.
Please use :: or requireNamespace() instead.
See section 'Suggested packages' in the 'Writing R Extensions' manual.
...
The proposed solutions are as follows:
add reshape2 to the DESCRIPTION imports
change library(data.table) to requireNamespace(data.table) since data.table is already imported in via the DESCRIPTION and NAMESPACE files
remove one unused instance of library(data.table)
Let me know if this change could be accepted (or rejected) or needs some additional changes before merging.
@Gitmaxwell,
This change fixes a few devtools::check warnings:
Steps to duplicate warning:
The proposed solutions are as follows:
library(data.table)
torequireNamespace(data.table)
since data.table is already imported in via the DESCRIPTION and NAMESPACE filesLet me know if this change could be accepted (or rejected) or needs some additional changes before merging.
Thanks,
DC