When loading the RTextTools package from CRAN, I get the following warnings:
Warning messages:
1: replacing previous import ‘head’ when loading
In general, this problem is often caused by having import(somepackage)
in the namespace as well as importFrom(somepackage, somefunction)
.
Equivalently, using roxgyen2
, having both #' @import somepackage
and #' @importFrom somepackage somefunction
.
The best practice solution is to remove the import
statement ans keep only importFrom
.