CRAN Package Check Results for Package lettercase

Last updated on 2019-09-28 14:46:26 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.13.1 2.45 23.60 26.05 ERROR
r-devel-linux-x86_64-debian-gcc 0.13.1 1.85 19.04 20.89 ERROR
r-devel-linux-x86_64-fedora-clang 0.13.1 32.31 ERROR
r-devel-linux-x86_64-fedora-gcc 0.13.1 31.57 ERROR
r-devel-windows-ix86+x86_64 0.13.1 8.00 53.00 61.00 OK
r-patched-linux-x86_64 0.13.1 1.81 23.13 24.94 OK
r-patched-solaris-x86 0.13.1 50.70 OK
r-release-linux-x86_64 0.13.1 2.10 23.12 25.22 OK
r-release-windows-ix86+x86_64 0.13.1 8.00 51.00 59.00 OK
r-release-osx-x86_64 0.13.1 OK
r-oldrel-windows-ix86+x86_64 0.13.1 4.00 50.00 54.00 OK
r-oldrel-osx-x86_64 0.13.1 OK

Check Details

Version: 0.13.1
Check: examples
Result: ERROR
    Running examples in 'lettercase-Ex.R' failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: str_collapse_whitespace
    > ### Title: Collpases multiple adjacent whitespace characters into one
    > ### Aliases: str_collapse_whitespace str_collapse_ws
    >
    > ### ** Examples
    >
    > str_collapse_whitespace( "A B" )
    [1] "A B"
    > str_collapse_whitespace( "A B C" )
    [1] "A B C"
    > str_collapse_whitespace( "A__B__C" )
    [1] "A_B_C"
    > str_collapse_whitespace( "A B__C" )
    [1] "A B_C"
    > str_collapse_whitespace( "A _B_ C" ) # No transformation, no matches
    [1] "A _B_ C"
    >
    > # See note above:
    > str_collapse_whitespace( "A _B_ C", '[\\s-_]' ) # possibly ill-defined
    Warning in gsub(pat, replacement, string, perl = TRUE) :
     PCRE pattern compilation error
     'invalid range in character class'
     at '-_])+'
    Error in gsub(pat, replacement, string, perl = TRUE) :
     invalid regular expression '([\s-_])+'
    Calls: str_collapse_whitespace -> gsub
    Execution halted
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc

Version: 0.13.1
Check: tests
Result: ERROR
     Running 'test-all.R' [1s/1s]
    Running the tests in 'tests/test-all.R' failed.
    Complete output:
     > library(testthat)
     > test_check('lettercase')
     Loading required package: lettercase
     Loading required package: stringr
     lettercase-0.13.1 - Copyright © 2019 Decision Patterns
     -- 1. Error: (unknown) (@test-snake_case.r#7) ---------------------------------
     invalid regular expression '[^\w\s-\.]'
     1: str_snake_case("mission_of_burma") %>% expect_equal("mission_of_burma") at testthat/test-snake_case.r:7
     2: eval(lhs, parent, parent)
     3: eval(lhs, parent, parent)
     4: str_snake_case("mission_of_burma")
     5: gsub("[^\\w\\s-\\.]", "", string, perl = TRUE)
    
     -- 2. Error: (unknown) (@test-str_collapse_whitespace.r#8) --------------------
     invalid regular expression '([\s-_])+'
     1: "A _B_ C" %>% str_collapse_whitespace("[\\s-_]") %>% expect_equal("A_B C") at testthat/test-str_collapse_whitespace.r:8
     2: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
     3: eval(quote(`_fseq`(`_lhs`)), env, env)
     4: eval(quote(`_fseq`(`_lhs`)), env, env)
     5: `_fseq`(`_lhs`)
     6: freduce(value, `_function_list`)
     7: function_list[[i]](value)
     8: str_collapse_whitespace(., "[\\s-_]")
     9: gsub(pat, replacement, string, perl = TRUE)
    
     == testthat results ===========================================================
     [ OK: 19 | SKIPPED: 0 | WARNINGS: 2 | FAILED: 2 ]
     1. Error: (unknown) (@test-snake_case.r#7)
     2. Error: (unknown) (@test-str_collapse_whitespace.r#8)
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.13.1
Check: tests
Result: ERROR
     Running ‘test-all.R’ [1s/1s]
    Running the tests in ‘tests/test-all.R’ failed.
    Complete output:
     > library(testthat)
     > test_check('lettercase')
     Loading required package: lettercase
     Loading required package: stringr
     lettercase-0.13.1 - Copyright © 2019 Decision Patterns
     ── 1. Error: (unknown) (@test-snake_case.r#7) ─────────────────────────────────
     invalid regular expression '[^\w\s-\.]'
     1: str_snake_case("mission_of_burma") %>% expect_equal("mission_of_burma") at testthat/test-snake_case.r:7
     2: eval(lhs, parent, parent)
     3: eval(lhs, parent, parent)
     4: str_snake_case("mission_of_burma")
     5: gsub("[^\\w\\s-\\.]", "", string, perl = TRUE)
    
     ── 2. Error: (unknown) (@test-str_collapse_whitespace.r#8) ────────────────────
     invalid regular expression '([\s-_])+'
     1: "A _B_ C" %>% str_collapse_whitespace("[\\s-_]") %>% expect_equal("A_B C") at testthat/test-str_collapse_whitespace.r:8
     2: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
     3: eval(quote(`_fseq`(`_lhs`)), env, env)
     4: eval(quote(`_fseq`(`_lhs`)), env, env)
     5: `_fseq`(`_lhs`)
     6: freduce(value, `_function_list`)
     7: function_list[[i]](value)
     8: str_collapse_whitespace(., "[\\s-_]")
     9: gsub(pat, replacement, string, perl = TRUE)
    
     ══ testthat results ═══════════════════════════════════════════════════════════
     [ OK: 19 | SKIPPED: 0 | WARNINGS: 2 | FAILED: 2 ]
     1. Error: (unknown) (@test-snake_case.r#7)
     2. Error: (unknown) (@test-str_collapse_whitespace.r#8)
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.13.1
Check: examples
Result: ERROR
    Running examples in ‘lettercase-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: str_collapse_whitespace
    > ### Title: Collpases multiple adjacent whitespace characters into one
    > ### Aliases: str_collapse_whitespace str_collapse_ws
    >
    > ### ** Examples
    >
    > str_collapse_whitespace( "A B" )
    [1] "A B"
    > str_collapse_whitespace( "A B C" )
    [1] "A B C"
    > str_collapse_whitespace( "A__B__C" )
    [1] "A_B_C"
    > str_collapse_whitespace( "A B__C" )
    [1] "A B_C"
    > str_collapse_whitespace( "A _B_ C" ) # No transformation, no matches
    [1] "A _B_ C"
    >
    > # See note above:
    > str_collapse_whitespace( "A _B_ C", '[\\s-_]' ) # possibly ill-defined
    Warning in gsub(pat, replacement, string, perl = TRUE) :
     PCRE pattern compilation error
     'invalid range in character class'
     at '-_])+'
    Error in gsub(pat, replacement, string, perl = TRUE) :
     invalid regular expression '([\s-_])+'
    Calls: str_collapse_whitespace -> gsub
    Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc

Version: 0.13.1
Check: tests
Result: ERROR
     Running ‘test-all.R’
    Running the tests in ‘tests/test-all.R’ failed.
    Complete output:
     > library(testthat)
     > test_check('lettercase')
     Loading required package: lettercase
     Loading required package: stringr
     lettercase-0.13.1 - Copyright © 2019 Decision Patterns
     ── 1. Error: (unknown) (@test-snake_case.r#7) ─────────────────────────────────
     invalid regular expression '[^\w\s-\.]'
     1: str_snake_case("mission_of_burma") %>% expect_equal("mission_of_burma") at testthat/test-snake_case.r:7
     2: eval(lhs, parent, parent)
     3: eval(lhs, parent, parent)
     4: str_snake_case("mission_of_burma")
     5: gsub("[^\\w\\s-\\.]", "", string, perl = TRUE)
    
     ── 2. Error: (unknown) (@test-str_collapse_whitespace.r#8) ────────────────────
     invalid regular expression '([\s-_])+'
     1: "A _B_ C" %>% str_collapse_whitespace("[\\s-_]") %>% expect_equal("A_B C") at testthat/test-str_collapse_whitespace.r:8
     2: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
     3: eval(quote(`_fseq`(`_lhs`)), env, env)
     4: eval(quote(`_fseq`(`_lhs`)), env, env)
     5: `_fseq`(`_lhs`)
     6: freduce(value, `_function_list`)
     7: function_list[[i]](value)
     8: str_collapse_whitespace(., "[\\s-_]")
     9: gsub(pat, replacement, string, perl = TRUE)
    
     ══ testthat results ═══════════════════════════════════════════════════════════
     [ OK: 19 | SKIPPED: 0 | WARNINGS: 2 | FAILED: 2 ]
     1. Error: (unknown) (@test-snake_case.r#7)
     2. Error: (unknown) (@test-str_collapse_whitespace.r#8)
    
     Error: testthat unit tests failed
     Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc