CRAN Package Check Results for Package biogram

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

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.6.1 4.33 60.58 64.91 ERROR
r-devel-linux-x86_64-debian-gcc 1.6.1 3.48 50.04 53.52 OK
r-devel-linux-x86_64-fedora-clang 1.6.1 85.85 WARN
r-devel-linux-x86_64-fedora-gcc 1.6.1 83.24 OK
r-devel-windows-ix86+x86_64 1.6.1 10.00 75.00 85.00 OK
r-devel-windows-ix86+x86_64-gcc8 1.6.1 17.00 117.00 134.00 OK
r-patched-linux-x86_64 1.6.1 4.12 59.35 63.47 OK
r-patched-solaris-x86 1.6.1 111.30 OK
r-release-linux-x86_64 1.6.1 3.71 59.10 62.81 OK
r-release-windows-ix86+x86_64 1.6.1 9.00 82.00 91.00 OK
r-release-osx-x86_64 1.6.1 OK
r-oldrel-windows-ix86+x86_64 1.6.1 6.00 66.00 72.00 OK
r-oldrel-osx-x86_64 1.6.1 OK

Check Details

Version: 1.6.1
Check: examples
Result: ERROR
    Running examples in 'biogram-Ex.R' failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: calc_si
    > ### Title: Compute similarity index
    > ### Aliases: calc_si
    >
    > ### ** Examples
    >
    > # example from Stephenson & Freeland, 2013 (Fig. 6)
    > enc1 <- list(`1` = "A",
    + `2` = c("F", "E"),
    + `3` = c("C", "D", "G"))
    >
    > enc2 <- list(`1` = c("A", "G"),
    + `2` = c("C", "D", "E", "F"))
    >
    > enc3 <- list(`1` = c("D", "G"),
    + `2` = c("E", "F"),
    + `3` = c("A", "C"))
    >
    > calc_si(enc1, enc2)
    Error in order(levels(res[["element"]])) : argument 1 is not a vector
    Calls: calc_si ... encoding2matrix -> encoding2df -> [ -> [.data.frame -> order
    Execution halted
Flavor: r-devel-linux-x86_64-debian-clang

Version: 1.6.1
Check: tests
Result: ERROR
     Running 'test-all.R' [16s/18s]
    Running the tests in 'tests/test-all.R' failed.
    Complete output:
     > library(testthat)
     >
     > test_check("biogram")
     Loading required package: biogram
     Loading required package: slam
     -- 1. Failure: Extract ngrams for different distances (@test_position_ngrams.R#6
     position_ngrams("2_1.1.2_0.1") not equal to structure(...).
     Component "2": Modes: character, numeric
     Component "2": Attributes: < target is NULL, current is list >
     Component "2": target is character, current is factor
     Component "3": Modes: character, numeric
     Component "3": Attributes: < target is NULL, current is list >
     Component "3": target is character, current is factor
     Component "5": Modes: character, numeric
     Component "5": Attributes: < target is NULL, current is list >
     Component "5": target is character, current is factor
    
     -- 2. Failure: Extract ngrams for different distances (@test_position_ngrams.R#1
     position_ngrams(c("2_1.1.2_0.1", "3_1.1.2_0.0", "3_2.2.2_0.0")) not equal to structure(...).
     Component "2": Modes: character, numeric
     Component "2": Attributes: < target is NULL, current is list >
     Component "2": target is character, current is factor
     Component "3": Modes: character, numeric
     Component "3": Attributes: < target is NULL, current is list >
     Component "3": target is character, current is factor
     Component "4": Modes: character, numeric
     Component "4": Attributes: < target is NULL, current is list >
     Component "4": target is character, current is factor
     ...
    
     -- 3. Failure: Extract ngrams for different distances (@test_position_ngrams.R#2
     position_ngrams(c("2_1.1.2_0.1", "7_1.1.2_0.0", "10_2.2.2_0.0")) not equal to structure(...).
     Component "2": Modes: character, numeric
     Component "2": Attributes: < target is NULL, current is list >
     Component "2": target is character, current is factor
     Component "3": Modes: character, numeric
     Component "3": Attributes: < target is NULL, current is list >
     Component "3": target is character, current is factor
     Component "5": Modes: character, numeric
     Component "5": Attributes: < target is NULL, current is list >
     Component "5": target is character, current is factor
     ...
    
     == testthat results ===========================================================
     [ OK: 43 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 3 ]
     1. Failure: Extract ngrams for different distances (@test_position_ngrams.R#6)
     2. Failure: Extract ngrams for different distances (@test_position_ngrams.R#13)
     3. Failure: Extract ngrams for different distances (@test_position_ngrams.R#21)
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-devel-linux-x86_64-debian-clang

Version: 1.6.1
Check: package dependencies
Result: WARN
    Requires orphaned package: ‘bit’
Flavor: r-devel-linux-x86_64-fedora-clang