[R] Warning on R CMD check
R. Michael Weylandt
michael.weylandt at gmail.com
Wed Jan 18 22:31:52 CET 2012
Which version of lubridate do you have on your machine? I don't get
those warnings with the current CRAN version 0.2.6: it looks like
Hadley changed things to avoid that problem just a few weeks ago:
https://github.com/hadley/lubridate/tree/master/R (see the note on
zzz.R)
Michael
On Wed, Jan 18, 2012 at 4:22 PM, David L Lorenz <lorenz at usgs.gov> wrote:
> I am trying to check and build a package that requires another package
> that generates a warning, so the check step never really completes with no
> warnings.
>
> The package uses some routines in the lubridate package, but when the
> lubridate package is loaded for the check, I get these warnings:
>
> Found the following significant warnings:
> Warning: changing locked binding for '+.Date' in 'base' whilst loading
> 'lubridate'
> Warning: changing locked binding for '+.POSIXt' in 'base' whilst loading
> 'lubridate'
> Warning: changing locked binding for '-.Date' in 'base' whilst loading
> 'lubridate'
> Warning: changing locked binding for '-.POSIXt' in 'base' whilst loading
> 'lubridate'
> Warning: changing locked binding for '/.difftime' in 'base' whilst
> loading 'lubridate'
>
> Everything else now checks out OK.
>
> Is this a big issue?
> Can I avoid the error by specifically referring to the functions that I
> need instead of loading the library?
> Does the last one cahnge what is specified in the DESCRIPTION file?
>
> Thanks.
> Dave
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list