CRAN Package Check Results for Package fdth

Last updated on 2020-02-21 17:47:45 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.2-1 3.46 28.83 32.29 ERROR
r-devel-linux-x86_64-debian-gcc 1.2-1 2.61 28.79 31.40 OK
r-devel-linux-x86_64-fedora-clang 1.2-1 50.32 OK
r-devel-linux-x86_64-fedora-gcc 1.2-1 49.68 OK
r-devel-windows-ix86+x86_64 1.2-1 6.00 50.00 56.00 OK
r-devel-windows-ix86+x86_64-gcc8 1.2-1 9.00 77.00 86.00 OK
r-patched-linux-x86_64 1.2-1 3.06 34.15 37.21 OK
r-patched-solaris-x86 1.2-1 65.20 OK
r-release-linux-x86_64 1.2-1 2.86 34.45 37.31 OK
r-release-windows-ix86+x86_64 1.2-1 6.00 67.00 73.00 OK
r-release-osx-x86_64 1.2-1 OK
r-oldrel-windows-ix86+x86_64 1.2-1 4.00 46.00 50.00 OK
r-oldrel-osx-x86_64 1.2-1 OK

Check Details

Version: 1.2-1
Check: examples
Result: ERROR
    Running examples in 'fdth-Ex.R' failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: fdt
    > ### Title: Frequency distribution table for numerical data
    > ### Aliases: fdt fdt.default fdt.data.frame fdt.matrix
    > ### Keywords: fdt fdt_cat frequency distribution table
    >
    > ### ** Examples
    >
    > library(fdth)
    >
    > ##========
    > ## Vector
    > ##========
    > x <- rnorm(n=1e3,
    + mean=5,
    + sd=1)
    >
    > # x
    > (fdt <- fdt(x))
     Class limits f rf rf(%) cf cf(%)
     [1.972,2.602) 14 0.01 1.4 14 1.4
     [2.602,3.231) 34 0.03 3.4 48 4.8
     [3.231,3.861) 85 0.09 8.5 133 13.3
     [3.861,4.491) 168 0.17 16.8 301 30.1
     [4.491,5.12) 249 0.25 24.9 550 55.0
     [5.12,5.75) 225 0.22 22.5 775 77.5
     [5.75,6.38) 133 0.13 13.3 908 90.8
     [6.38,7.009) 67 0.07 6.7 975 97.5
     [7.009,7.639) 21 0.02 2.1 996 99.6
     [7.639,8.269) 3 0.00 0.3 999 99.9
     [8.269,8.898) 1 0.00 0.1 1000 100.0
    >
    > # x, alternative breaks
    > (fdt <- fdt(x,
    + breaks='Scott'))
     Class limits f rf rf(%) cf cf(%)
     [1.972,2.337) 4 0.00 0.4 4 0.4
     [2.337,2.701) 13 0.01 1.3 17 1.7
     [2.701,3.066) 21 0.02 2.1 38 3.8
     [3.066,3.43) 25 0.03 2.5 63 6.3
     [3.43,3.795) 58 0.06 5.8 121 12.1
     [3.795,4.159) 88 0.09 8.8 209 20.9
     [4.159,4.524) 102 0.10 10.2 311 31.1
     [4.524,4.888) 154 0.15 15.4 465 46.5
     [4.888,5.253) 136 0.14 13.6 601 60.1
     [5.253,5.617) 125 0.12 12.5 726 72.6
     [5.617,5.982) 109 0.11 10.9 835 83.5
     [5.982,6.347) 67 0.07 6.7 902 90.2
     [6.347,6.711) 46 0.05 4.6 948 94.8
     [6.711,7.076) 31 0.03 3.1 979 97.9
     [7.076,7.44) 15 0.01 1.5 994 99.4
     [7.44,7.805) 4 0.00 0.4 998 99.8
     [7.805,8.169) 1 0.00 0.1 999 99.9
     [8.169,8.534) 0 0.00 0.0 999 99.9
     [8.534,8.898) 1 0.00 0.1 1000 100.0
    >
    > # x, k
    > (fdt <- fdt(x,
    + k=10))
     Class limits f rf rf(%) cf cf(%)
     [1.972,2.665) 16 0.02 1.6 16 1.6
     [2.665,3.357) 41 0.04 4.1 57 5.7
     [3.357,4.05) 126 0.13 12.6 183 18.3
     [4.05,4.743) 225 0.22 22.5 408 40.8
     [4.743,5.435) 255 0.26 25.5 663 66.3
     [5.435,6.128) 207 0.21 20.7 870 87.0
     [6.128,6.82) 94 0.09 9.4 964 96.4
     [6.82,7.513) 32 0.03 3.2 996 99.6
     [7.513,8.206) 3 0.00 0.3 999 99.9
     [8.206,8.898) 1 0.00 0.1 1000 100.0
    >
    > # x, star, end
    > range(x)
    [1] 1.991951 8.810277
    >
    > (fdt <- fdt(x,
    + start=floor(min(x)),
    + end=floor(max(x) + 1)))
     Class limits f rf rf(%) cf cf(%)
     [1,2.6) 14 0.01 1.4 14 1.4
     [2.6,4.2) 204 0.20 20.4 218 21.8
     [4.2,5.8) 568 0.57 56.8 786 78.6
     [5.8,7.4) 207 0.21 20.7 993 99.3
     [7.4,9) 7 0.01 0.7 1000 100.0
    >
    > # x, start, end, h
    > (fdt <- fdt(x,
    + start=floor(min(x)),
    + end=floor(max(x) + 1),
    + h=1))
     Class limits f rf rf(%) cf cf(%)
     [1,2) 1 0.00 0.1 1 0.1
     [2,3) 32 0.03 3.2 33 3.3
     [3,4) 135 0.14 13.5 168 16.8
     [4,5) 350 0.35 35.0 518 51.8
     [5,6) 324 0.32 32.4 842 84.2
     [6,7) 131 0.13 13.1 973 97.3
     [7,8) 25 0.03 2.5 998 99.8
     [8,9) 2 0.00 0.2 1000 100.0
    >
    > # Effect of right
    > x <- rep(1:3, 3); sort(x)
    [1] 1 1 1 2 2 2 3 3 3
    >
    > (fdt <- fdt(x,
    + start=1,
    + end=4,
    + h=1))
     Class limits f rf rf(%) cf cf(%)
     [1,2) 3 0.33 33.33 3 33.33
     [2,3) 3 0.33 33.33 6 66.67
     [3,4) 3 0.33 33.33 9 100.00
    >
    > (fdt <- fdt(x,
    + start=0,
    + end=3,
    + h=1,
    + right=TRUE))
     Class limits f rf rf(%) cf cf(%)
     (0,1] 3 0.33 33.33 3 33.33
     (1,2] 3 0.33 33.33 6 66.67
     (2,3] 3 0.33 33.33 9 100.00
    >
    > ##================================================
    > ## Data.frame: multivariated with two categorical
    > ##================================================
    > mdf <- data.frame(c1=sample(LETTERS[1:3], 1e2, TRUE),
    + c2=as.factor(sample(1:10, 1e2, TRUE)),
    + n1=c(NA, NA, rnorm(96, 10, 1), NA, NA),
    + n2=rnorm(100, 60, 4),
    + n3=rnorm(100, 50, 4))
    >
    > head(mdf)
     c1 c2 n1 n2 n3
    1 C 4 NA 59.38673 46.81578
    2 C 10 NA 58.97771 49.64192
    3 C 9 9.857095 54.84549 45.76137
    4 C 7 10.771904 60.26107 43.58275
    5 C 2 8.840882 64.14131 53.16540
    6 B 7 9.762084 69.04086 50.27263
    >
    > (fdt <- fdt(mdf))
    n1
     Class limits f rf rf(%) cf cf(%)
     [6.7189,7.4706) 1 0.01 1.04 1 1.04
     [7.4706,8.2223) 3 0.03 3.12 4 4.17
     [8.2223,8.974) 11 0.11 11.46 15 15.62
     [8.974,9.7257) 25 0.26 26.04 40 41.67
     [9.7257,10.477) 24 0.25 25.00 64 66.67
     [10.477,11.229) 18 0.19 18.75 82 85.42
     [11.229,11.981) 9 0.09 9.38 91 94.79
     [11.981,12.733) 5 0.05 5.21 96 100.00
    
    n2
     Class limits f rf rf(%) cf cf(%)
     [51.336,54.332) 3 0.03 3 3 3
     [54.332,57.328) 20 0.20 20 23 23
     [57.328,60.324) 31 0.31 31 54 54
     [60.324,63.32) 22 0.22 22 76 76
     [63.32,66.316) 17 0.17 17 93 93
     [66.316,69.312) 6 0.06 6 99 99
     [69.312,72.308) 0 0.00 0 99 99
     [72.308,75.304) 1 0.01 1 100 100
    
    n3
     Class limits f rf rf(%) cf cf(%)
     [36.617,39.458) 1 0.01 1 1 1
     [39.458,42.299) 0 0.00 0 1 1
     [42.299,45.14) 10 0.10 10 11 11
     [45.14,47.981) 23 0.23 23 34 34
     [47.981,50.822) 28 0.28 28 62 62
     [50.822,53.663) 18 0.18 18 80 80
     [53.663,56.504) 15 0.15 15 95 95
     [56.504,59.345) 5 0.05 5 100 100
    
    >
    > # By factor!
    > (fdt <- fdt(mdf,
    + k=5,
    + by='c1'))
    Error in fdt.data.frame(mdf, k = 5, by = "c1") :
     is.factor((x[[pos]])) is not TRUE
    Calls: fdt -> fdt.data.frame -> stopifnot
    Execution halted
Flavor: r-devel-linux-x86_64-debian-clang

Version: 1.2-1
Check: re-building of vignette outputs
Result: WARN
    Error(s) in re-building vignettes:
     ...
    --- re-building 'latex_fdt.Rnw' using Sweave
    
    Attaching package: 'fdth'
    
    The following objects are masked from 'package:stats':
    
     sd, var
    
    
    Error: processing vignette 'latex_fdt.Rnw' failed with diagnostics:
     chunk 1 (label = tab)
    Error in x[[i]] : subscript out of bounds
    
    --- failed re-building 'latex_fdt.Rnw'
    
    SUMMARY: processing the following file failed:
     'latex_fdt.Rnw'
    
    Error: Vignette re-building failed.
    Execution halted
Flavor: r-devel-linux-x86_64-debian-clang