Entering edit mode
swaraj basu
▴
50
@swaraj-basu-4629
Last seen 10.3 years ago
Dear All,
I am trying to build a package for a set of functions. I
am
able to build the package and its working fine. When I check it with
R CMD check
I get a following warning : no visible global function
definition for biocLite
I have used biocLite to load a user defined library from
within a function if that library is not pre-installed
if(is.element(annotpkg, installed.packages()[,1]) ==
"FALSE"){
source("http://www.bioconductor.org/biocLite.R")
biocLite(annotpkg)
library(annotpkg,character.only=TRUE)
}
Should I ignore this error or there is a workaround for
the
warning. My package is working fine though still I guess the warning
has to
have significance. Please help in clarifying this
warning.
[[alternative HTML version deleted]]