[BioC] R CMD check : biocLite warning
Henrik Bengtsson
hb at biostat.ucsf.edu
Fri May 6 17:31:20 CEST 2011
NOTEs can be ignored and are sometimes false positives. If I want to
get rid of it, a workaround that I use is:
# To please R CMD check
biocLite <- NULL; rm(biocLite)
source("http://www.bioconductor.org/biocLite.R")
biocLite(annotpkg)
Similar code-check NOTEs occurs when you for instance load objects,
attach a data frame etc, e.g.
df <- data.frame(a=1, b=2)
attach(df)
# To please R CMD check
a <- b <- NULL; rm(a, b)
x <- a + b
/Henrik
On Fri, May 6, 2011 at 2:20 AM, swaraj basu <projectbasu at gmail.com> wrote:
> 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]]
>
>
> _______________________________________________
> Bioconductor mailing list
> Bioconductor at r-project.org
> https://stat.ethz.ch/mailman/listinfo/bioconductor
> Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor
>
More information about the Bioconductor
mailing list