CRAN Package Check Results for Package rtext

Last updated on 2019-07-16 00:48:25 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.1.21 18.00 65.25 83.25 OK
r-devel-linux-x86_64-debian-gcc 0.1.21 15.03 52.56 67.59 OK
r-devel-linux-x86_64-fedora-clang 0.1.21 105.75 NOTE
r-devel-linux-x86_64-fedora-gcc 0.1.21 101.45 NOTE
r-devel-windows-ix86+x86_64 0.1.21 51.00 124.00 175.00 ERROR
r-patched-linux-x86_64 0.1.21 17.45 65.27 82.72 OK
r-patched-solaris-x86 0.1.21 181.30 NOTE
r-release-linux-x86_64 0.1.21 16.86 65.18 82.04 OK
r-release-windows-ix86+x86_64 0.1.21 35.00 161.00 196.00 OK
r-release-osx-x86_64 0.1.21 NOTE
r-oldrel-windows-ix86+x86_64 0.1.21 42.00 164.00 206.00 ERROR
r-oldrel-osx-x86_64 0.1.21 NOTE

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-osx-x86_64, r-oldrel-osx-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-osx-x86_64, r-oldrel-osx-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-devel-windows-ix86+x86_64

Version: 0.1.21
Check: running tests for arch ‘i386’
Result: ERROR
     Running 'test-all.R' [44s]
    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_words (@test_rtext.R#91) ---------------------
     arguments must have same length
     1: expect_true({
     dings <- rtext$new("meine mudder schneidet speck - ho-narroh")
     dings$char_data_set("test", 1:5, 1)
     dings$char_data_set("toast", 1:dings$char_length(), "uggah")
     dings$char_data_get()
     dings$tokenize_data_words()$test[1] == 1
     }) at testthat/test_rtext.R:91
     2: quasi_label(enquo(object), label, arg = "object")
     3: eval_bare(get_expr(quo), get_env(quo))
     4: dings$tokenize_data_words() at testthat/test_rtext.R:96
     5: self$tokenize_data_regex(split = split, ignore.case = ignore.case, fixed = fixed,
     perl = perl, useBytes = useBytes, non_token = non_token, join = join, aggregate_function = aggregate_function,
     ...)
     6: self$tokenize_data_sequences(token = token, join = join, aggregate_function = aggregate_function,
     ...)
     7: stats::aggregate(chardata[, -c(1:2)], by = list(token_i = token_i), FUN = "modus",
     multimodal = NA, warn = FALSE)
     8: aggregate.data.frame(chardata[, -c(1:2)], by = list(token_i = token_i), FUN = "modus",
     multimodal = NA, warn = FALSE)
     9: stop("arguments must have same length")
    
     == testthat results ===========================================================
     OK: 280 SKIPPED: 0 WARNINGS: 0 FAILED: 1
     1. Error: rtext tokenize_data_words (@test_rtext.R#91)
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-oldrel-windows-ix86+x86_64