CRAN Package Check Results for Package rtext

Last updated on 2020-09-18 15:52:59 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.1.21 26.40 69.09 95.49 OK
r-devel-linux-x86_64-debian-gcc 0.1.21 16.38 54.44 70.82 OK
r-devel-linux-x86_64-fedora-clang 0.1.21 127.35 NOTE
r-devel-linux-x86_64-fedora-gcc 0.1.21 112.81 NOTE
r-devel-windows-ix86+x86_64 0.1.21 52.00 130.00 182.00 OK
r-patched-linux-x86_64 0.1.21 18.80 67.48 86.28 OK
r-patched-solaris-x86 0.1.21 182.00 NOTE
r-release-linux-x86_64 0.1.21 19.49 69.40 88.89 OK
r-release-macos-x86_64 0.1.21 NOTE
r-release-windows-ix86+x86_64 0.1.21 52.00 172.00 224.00 ERROR
r-oldrel-macos-x86_64 0.1.21 NOTE
r-oldrel-windows-ix86+x86_64 0.1.21 36.00 157.00 193.00 ERROR

Check Details

Version: 0.1.21
Check: dependencies in R code
Result: NOTE
    Namespaces in Imports field not imported from:
     ‘RSQLite’ ‘stats’
     All declared Imports should be used.
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-patched-solaris-x86, r-release-macos-x86_64, r-oldrel-macos-x86_64

Version: 0.1.21
Check: data for non-ASCII characters
Result: NOTE
     Note: found 2 marked UTF-8 strings
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-patched-solaris-x86, r-release-macos-x86_64, r-oldrel-macos-x86_64

Version: 0.1.21
Check: running tests for arch ‘i386’
Result: ERROR
     Running 'test-all.R' [46s]
    Running the tests in 'tests/test-all.R' failed.
    Complete output:
     > library(testthat)
     > test_check("rtext")
     Loading required package: rtext
     Loading required package: stringb
     -- 1. Error: rtext tokenize_data_regex (@test_rtext.R#60) ---------------------
     arguments must have same length
     Backtrace:
     1. testthat::expect_true(...)
     4. dings$tokenize_data_regex("\\W+")
     5. self$tokenize_data_sequences(...)
     7. stats::aggregate.data.frame(...)
    
     == testthat results ===========================================================
     [ OK: 281 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 1 ]
     1. Error: rtext tokenize_data_regex (@test_rtext.R#60)
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-release-windows-ix86+x86_64

Version: 0.1.21
Check: running examples for arch ‘i386’
Result: ERROR
    Running examples in 'rtext-Ex.R' failed
    The error most likely occurred in:
    
    > ### Name: rtext
    > ### Title: R6 class - linking text and data
    > ### Aliases: rtext
    > ### Keywords: data
    >
    > ### ** Examples
    >
    >
    > # initialize (with text or file)
    > quote_text <-
    + "Outside of a dog, a book is man's best friend. Inside of a dog it's too dark to read."
    > quote <- rtext$new(text = quote_text)
    rtext : initializing
    >
    > # add some data
    > quote$char_data_set("first", 1, TRUE)
    > quote$char_data_set("last", quote$char_length(), TRUE)
    >
    > # get the data
    > quote$char_data_get()
     i char first last
    1 1 O TRUE NA
    2 85 . NA TRUE
    >
    > # transform text
    > quote$char_add("[this is an insertion] \n", 47)
    >
    > # get the data again (see, the data moved along with the text)
    > quote$text_get()
    [1] "Outside of a dog, a book is man's best friend. [this is an insertion] \nInside of a dog it's too dark to read."
    > quote$char_data_get()
     i char first last
    1 1 O TRUE NA
    2 109 . NA TRUE
    >
    > # do some convenience coding (via regular expressions)
    > quote$char_data_set_regex("dog_friend", "dog", "dog")
    > quote$char_data_set_regex("dog_friend", "friend", "friend")
    > quote$char_data_get()
     i char first last dog_friend
    1 1 O TRUE NA <NA>
    2 14 d NA NA dog
    3 15 o NA NA dog
    4 16 g NA NA dog
    5 40 f NA NA friend
    6 41 r NA NA friend
    7 42 i NA NA friend
    8 43 e NA NA friend
    9 44 n NA NA friend
    10 45 d NA NA friend
    11 84 d NA NA dog
    12 85 o NA NA dog
    13 86 g NA NA dog
    14 109 . NA TRUE <NA>
    >
    > # aggregate data by regex pattern
    > quote$tokenize_data_regex(split="(dog)|(friend)", non_token = TRUE, join = "full")
     token_i from to token is_token first last
    1 1 1 13 Outside of a TRUE TRUE NA
    2 2 14 16 dog FALSE NA NA
    3 3 17 39 , a book is man's best TRUE NA NA
    4 4 40 45 friend FALSE NA NA
    5 5 46 83 . [this is an insertion] \nInside of a TRUE NA NA
    6 6 84 86 dog FALSE NA NA
    7 7 87 109 it's too dark to read. TRUE NA TRUE
     dog_friend
    1 <NA>
    2 dog
    3 <NA>
    4 friend
    5 <NA>
    6 dog
    7 <NA>
    >
    > # aggregate data by words
    > quote$tokenize_data_words(non_token = TRUE, join="full")
    Error in aggregate.data.frame(chardata[, -c(1:2)], by = list(token_i = token_i), :
     arguments must have same length
    Calls: <Anonymous> ... <Anonymous> -> <Anonymous> -> <Anonymous> -> aggregate.data.frame
    Execution halted
Flavor: r-oldrel-windows-ix86+x86_64