CRAN Package Check Results for Package mondate

Last updated on 2014-04-19 18:47:44.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.10.01.02 1.60 19.72 21.32 NOTE
r-devel-linux-x86_64-debian-gcc 0.10.01.02 1.59 19.99 21.58 NOTE
r-devel-linux-x86_64-fedora-clang 0.10.01.02 42.80 NOTE
r-devel-linux-x86_64-fedora-gcc 0.10.01.02 40.09 NOTE
r-devel-macosx-x86_64-clang 0.10.01.02 36.55 NOTE
r-devel-macosx-x86_64-gcc 0.10.01.02 ERROR
r-devel-windows-ix86+x86_64 0.10.01.02 5.00 27.00 32.00 NOTE
r-patched-linux-x86_64 0.10.01.02 1.58 19.10 20.68 NOTE
r-patched-solaris-sparc 0.10.01.02 241.80 NOTE
r-patched-solaris-x86 0.10.01.02 57.60 NOTE
r-release-linux-ix86 NOTE
r-release-linux-x86_64 0.10.01.02 1.69 18.95 20.64 NOTE
r-release-windows-ix86+x86_64 0.10.01.02 6.00 29.00 35.00 NOTE
r-oldrel-windows-ix86+x86_64 0.10.01.02 5.00 29.00 34.00 NOTE

Check Details

Version: 0.10.01.02
Check: dependencies in R code
Result: NOTE
    Package in Depends field not imported from: ‘methods’
     These packages need to be imported from (in the NAMESPACE file)
     for when this namespace is loaded but not attached.
    See the information on DESCRIPTION files in the chapter ‘Creating R
    packages’ of the ‘Writing R Extensions’ manual.
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-macosx-x86_64-clang, r-devel-macosx-x86_64-gcc, r-devel-windows-ix86+x86_64, r-patched-linux-x86_64, r-patched-solaris-sparc, r-patched-solaris-x86, r-release-linux-ix86, r-release-linux-x86_64, r-release-windows-ix86+x86_64, r-oldrel-windows-ix86+x86_64

Version: 0.10.01.02
Check: package dependencies
Result: NOTE
    Package suggested but not available for checking: ‘zoo’
Flavor: r-devel-macosx-x86_64-gcc

Version: 0.10.01.02
Check: Rd cross-references
Result: NOTE
    Package unavailable to check Rd xrefs: ‘zoo’
Flavor: r-devel-macosx-x86_64-gcc

Version: 0.10.01.02
Check: examples
Result: ERROR
    Running examples in ‘mondate-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: mondate-methods
    > ### Title: Create an instance of the mondate class
    > ### Aliases: mondate mondate-methods mondate,ANY-method
    > ### mondate,array-method mondate,character-method mondate,factor-method
    > ### mondate,Date-method mondate,mondate-method mondate,numeric-method
    > ### mondate,matrix-method mondate,POSIXt-method mondate,missing-method
    > ### Keywords: methods
    >
    > ### ** Examples
    >
    > mondate("1-31-2010") # Jan. 31, 2010
    mondate: timeunits="months"
    [1] 01-31-2010
    > mondate(60) # 60 months after 12/31/1999, so Dec. 31, 2004
    mondate: timeunits="months"
    [1] 2004-12-31
    > dat <- as.Date("2010-1-31")
    > (M <- mondate(dat)) # Jan. 31, 2010
    mondate: timeunits="months"
    [1] 2010-01-31
    > x <- 12 * 1:6
    > mondate(x) # first 6 yearends in 2000's
    mondate: timeunits="months"
    [1] 2000-12-31 2001-12-31 2002-12-31 2003-12-31 2004-12-31 2005-12-31
    > y <- x + 12
    > mondate(cbind(x,y)) # bounding dates of first 6 years of millennium
    mondate: timeunits="months"
     x y
    [1,] 2000-12-31 2001-12-31
    [2,] 2001-12-31 2002-12-31
    [3,] 2002-12-31 2003-12-31
    [4,] 2003-12-31 2004-12-31
    [5,] 2004-12-31 2005-12-31
    [6,] 2005-12-31 2006-12-31
    > (y <- mondate(1:6,timeunits="years")) # first 6 yearends, 'years' timeunits
    mondate: timeunits="years"
    [1] 2000-12-31 2001-12-31 2002-12-31 2003-12-31 2004-12-31 2005-12-31
    > # The results of date arithmetic on y will be displayed in "years".
    > # E.g., the differences of y can be calculated as:
    > tail(y,-1) - head(y,-1)# vector of five 1's, with "timeunits" attribute = "years"
    Time differences in years
    [1] 12 12 12 12 12
    > as.numeric(x)
    [1] 12 24 36 48 60 72
    > as.numeric(y) # the underlying numeric representations are the same
    [1] 12 24 36 48 60 72
    >
    > # Demonstrating "infinite" dates
    > y <- c(y,Inf)
    > y # last element shows as Inf
    mondate: timeunits="years"
    [1] 2000-12-31 2001-12-31 2002-12-31 2003-12-31 2004-12-31 2005-12-31 Inf
    > tail(y,-1) - head(y,-1)# last element is now infinity
    Time differences in years
    [1] 12 12 12 12 12 Inf
    >
    > # The zoo examples point out a difference between zoo and mondate.
    > # zoo assumes that the zero-th part of a month or quarter is the first
    > # day of the month or quarter, whereas mondate assumes that it is
    > # the instant before the first day of the month or quarter.
    > # Since frac=0 is zoo's as.Date coersion default, a month or quarter in
    > # zoo's sense converts to the end of the first day rather than
    > # the beginning.
    > library(zoo)
    Error in library(zoo) : there is no package called ‘zoo’
    Execution halted
Flavor: r-devel-macosx-x86_64-gcc