CRAN Package Check Results for Package gtools

Last updated on 2020-03-30 07:51:18 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 3.8.1 4.51 34.88 39.39 ERROR
r-devel-linux-x86_64-debian-gcc 3.8.1 3.54 27.77 31.31 ERROR
r-devel-linux-x86_64-fedora-clang 3.8.1 47.37 ERROR
r-devel-linux-x86_64-fedora-gcc 3.8.1 46.53 ERROR
r-devel-windows-ix86+x86_64 3.8.1 14.00 94.00 108.00 ERROR
r-devel-windows-ix86+x86_64-gcc8 3.8.1 15.00 66.00 81.00 ERROR
r-patched-linux-x86_64 3.8.1 4.27 34.79 39.06 ERROR
r-patched-solaris-x86 3.8.1 71.60 ERROR
r-release-linux-x86_64 3.8.1 3.21 105.87 109.08 NOTE
r-release-windows-ix86+x86_64 3.8.1 11.00 96.00 107.00 NOTE
r-release-osx-x86_64 3.8.1 NOTE
r-oldrel-windows-ix86+x86_64 3.8.1 12.00 64.00 76.00 NOTE
r-oldrel-osx-x86_64 3.8.1 NOTE

Check Details

Version: 3.8.1
Check: R code for possible problems
Result: NOTE
    Found the following possibly unsafe calls:
    File 'gtools/R/unByteCode.R':
     unlockBinding(name, env = env)
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-windows-ix86+x86_64, r-devel-windows-ix86+x86_64-gcc8, r-patched-linux-x86_64, r-patched-solaris-x86, r-release-linux-x86_64, r-release-windows-ix86+x86_64, r-release-osx-x86_64, r-oldrel-windows-ix86+x86_64, r-oldrel-osx-x86_64

Version: 3.8.1
Check: examples
Result: ERROR
    Running examples in 'gtools-Ex.R' failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: defmacro
    > ### Title: Define a macro
    > ### Aliases: defmacro strmacro
    > ### Keywords: programming
    >
    > ### ** Examples
    >
    > ####
    > # macro for replacing a specified missing value indicator with NA
    > # within a dataframe
    > ###
    > setNA <- defmacro(df, var, values,
    + expr={
    + df$var[df$var %in% values] <- NA
    + })
    >
    > # create example data using 999 as a missing value indicator
    > d <- data.frame(
    + Grp=c("Trt", "Ctl", "Ctl", "Trt", "Ctl", "Ctl", "Trt", "Ctl", "Trt", "Ctl"),
    + V1=c(1, 2, 3, 4, 5, 6, 999, 8, 9, 10),
    + V2=c(1, 1, 1, 1, 1, 2, 999, 2, 999, 999)
    + )
    > d
     Grp V1 V2
    1 Trt 1 1
    2 Ctl 2 1
    3 Ctl 3 1
    4 Trt 4 1
    5 Ctl 5 1
    6 Ctl 6 2
    7 Trt 999 999
    8 Ctl 8 2
    9 Trt 9 999
    10 Ctl 10 999
    >
    > # Try it out
    > setNA(d, V1, 999)
    > setNA(d, V2, 999)
    > d
     Grp V1 V2
    1 Trt 1 1
    2 Ctl 2 1
    3 Ctl 3 1
    4 Trt 4 1
    5 Ctl 5 1
    6 Ctl 6 2
    7 Trt NA NA
    8 Ctl 8 2
    9 Trt 9 NA
    10 Ctl 10 NA
    >
    >
    > ###
    > # Expression macro
    > ###
    > plot.d <- defmacro( df, var, DOTS, col="red", title="", expr=
    + plot( df$var ~ df$Grp, type="b", col=col, main=title, ... )
    + )
    >
    > plot.d( d, V1)
    Warning in xy.coords(x, y, xlabel, ylabel, log) :
     NAs introduced by coercion
    Warning in min(x) : no non-missing arguments to min; returning Inf
    Warning in max(x) : no non-missing arguments to max; returning -Inf
    Error in plot.window(...) : need finite 'xlim' values
    Calls: plot.d ... do.call -> plot -> plot.default -> localWindow -> plot.window
    Execution halted
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-patched-linux-x86_64

Version: 3.8.1
Check: examples
Result: ERROR
    Running examples in ‘gtools-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: defmacro
    > ### Title: Define a macro
    > ### Aliases: defmacro strmacro
    > ### Keywords: programming
    >
    > ### ** Examples
    >
    > ####
    > # macro for replacing a specified missing value indicator with NA
    > # within a dataframe
    > ###
    > setNA <- defmacro(df, var, values,
    + expr={
    + df$var[df$var %in% values] <- NA
    + })
    >
    > # create example data using 999 as a missing value indicator
    > d <- data.frame(
    + Grp=c("Trt", "Ctl", "Ctl", "Trt", "Ctl", "Ctl", "Trt", "Ctl", "Trt", "Ctl"),
    + V1=c(1, 2, 3, 4, 5, 6, 999, 8, 9, 10),
    + V2=c(1, 1, 1, 1, 1, 2, 999, 2, 999, 999)
    + )
    > d
     Grp V1 V2
    1 Trt 1 1
    2 Ctl 2 1
    3 Ctl 3 1
    4 Trt 4 1
    5 Ctl 5 1
    6 Ctl 6 2
    7 Trt 999 999
    8 Ctl 8 2
    9 Trt 9 999
    10 Ctl 10 999
    >
    > # Try it out
    > setNA(d, V1, 999)
    > setNA(d, V2, 999)
    > d
     Grp V1 V2
    1 Trt 1 1
    2 Ctl 2 1
    3 Ctl 3 1
    4 Trt 4 1
    5 Ctl 5 1
    6 Ctl 6 2
    7 Trt NA NA
    8 Ctl 8 2
    9 Trt 9 NA
    10 Ctl 10 NA
    >
    >
    > ###
    > # Expression macro
    > ###
    > plot.d <- defmacro( df, var, DOTS, col="red", title="", expr=
    + plot( df$var ~ df$Grp, type="b", col=col, main=title, ... )
    + )
    >
    > plot.d( d, V1)
    Warning in xy.coords(x, y, xlabel, ylabel, log) :
     NAs introduced by coercion
    Warning in min(x) : no non-missing arguments to min; returning Inf
    Warning in max(x) : no non-missing arguments to max; returning -Inf
    Error in plot.window(...) : need finite 'xlim' values
    Calls: plot.d ... do.call -> plot -> plot.default -> localWindow -> plot.window
    Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-patched-solaris-x86

Version: 3.8.1
Check: running examples for arch ‘i386’
Result: ERROR
    Running examples in 'gtools-Ex.R' failed
    The error most likely occurred in:
    
    > ### Name: defmacro
    > ### Title: Define a macro
    > ### Aliases: defmacro strmacro
    > ### Keywords: programming
    >
    > ### ** Examples
    >
    > ####
    > # macro for replacing a specified missing value indicator with NA
    > # within a dataframe
    > ###
    > setNA <- defmacro(df, var, values,
    + expr={
    + df$var[df$var %in% values] <- NA
    + })
    >
    > # create example data using 999 as a missing value indicator
    > d <- data.frame(
    + Grp=c("Trt", "Ctl", "Ctl", "Trt", "Ctl", "Ctl", "Trt", "Ctl", "Trt", "Ctl"),
    + V1=c(1, 2, 3, 4, 5, 6, 999, 8, 9, 10),
    + V2=c(1, 1, 1, 1, 1, 2, 999, 2, 999, 999)
    + )
    > d
     Grp V1 V2
    1 Trt 1 1
    2 Ctl 2 1
    3 Ctl 3 1
    4 Trt 4 1
    5 Ctl 5 1
    6 Ctl 6 2
    7 Trt 999 999
    8 Ctl 8 2
    9 Trt 9 999
    10 Ctl 10 999
    >
    > # Try it out
    > setNA(d, V1, 999)
    > setNA(d, V2, 999)
    > d
     Grp V1 V2
    1 Trt 1 1
    2 Ctl 2 1
    3 Ctl 3 1
    4 Trt 4 1
    5 Ctl 5 1
    6 Ctl 6 2
    7 Trt NA NA
    8 Ctl 8 2
    9 Trt 9 NA
    10 Ctl 10 NA
    >
    >
    > ###
    > # Expression macro
    > ###
    > plot.d <- defmacro( df, var, DOTS, col="red", title="", expr=
    + plot( df$var ~ df$Grp, type="b", col=col, main=title, ... )
    + )
    >
    > plot.d( d, V1)
    Warning in xy.coords(x, y, xlabel, ylabel, log) :
     NAs introduced by coercion
    Warning in min(x) : no non-missing arguments to min; returning Inf
    Warning in max(x) : no non-missing arguments to max; returning -Inf
    Error in plot.window(...) : need finite 'xlim' values
    Calls: plot.d ... do.call -> plot -> plot.default -> localWindow -> plot.window
    Execution halted
Flavors: r-devel-windows-ix86+x86_64, r-devel-windows-ix86+x86_64-gcc8

Version: 3.8.1
Check: running examples for arch ‘x64’
Result: ERROR
    Running examples in 'gtools-Ex.R' failed
    The error most likely occurred in:
    
    > ### Name: defmacro
    > ### Title: Define a macro
    > ### Aliases: defmacro strmacro
    > ### Keywords: programming
    >
    > ### ** Examples
    >
    > ####
    > # macro for replacing a specified missing value indicator with NA
    > # within a dataframe
    > ###
    > setNA <- defmacro(df, var, values,
    + expr={
    + df$var[df$var %in% values] <- NA
    + })
    >
    > # create example data using 999 as a missing value indicator
    > d <- data.frame(
    + Grp=c("Trt", "Ctl", "Ctl", "Trt", "Ctl", "Ctl", "Trt", "Ctl", "Trt", "Ctl"),
    + V1=c(1, 2, 3, 4, 5, 6, 999, 8, 9, 10),
    + V2=c(1, 1, 1, 1, 1, 2, 999, 2, 999, 999)
    + )
    > d
     Grp V1 V2
    1 Trt 1 1
    2 Ctl 2 1
    3 Ctl 3 1
    4 Trt 4 1
    5 Ctl 5 1
    6 Ctl 6 2
    7 Trt 999 999
    8 Ctl 8 2
    9 Trt 9 999
    10 Ctl 10 999
    >
    > # Try it out
    > setNA(d, V1, 999)
    > setNA(d, V2, 999)
    > d
     Grp V1 V2
    1 Trt 1 1
    2 Ctl 2 1
    3 Ctl 3 1
    4 Trt 4 1
    5 Ctl 5 1
    6 Ctl 6 2
    7 Trt NA NA
    8 Ctl 8 2
    9 Trt 9 NA
    10 Ctl 10 NA
    >
    >
    > ###
    > # Expression macro
    > ###
    > plot.d <- defmacro( df, var, DOTS, col="red", title="", expr=
    + plot( df$var ~ df$Grp, type="b", col=col, main=title, ... )
    + )
    >
    > plot.d( d, V1)
    Warning in xy.coords(x, y, xlabel, ylabel, log) :
     NAs introduced by coercion
    Warning in min(x) : no non-missing arguments to min; returning Inf
    Warning in max(x) : no non-missing arguments to max; returning -Inf
    Error in plot.window(...) : need finite 'xlim' values
    Calls: plot.d ... do.call -> plot -> plot.default -> localWindow -> plot.window
    Execution halted
Flavors: r-devel-windows-ix86+x86_64, r-devel-windows-ix86+x86_64-gcc8