CRAN Package Check Results for Package units

Last updated on 2019-07-21 01:47:07 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.6-3 22.33 50.01 72.34 ERROR
r-devel-linux-x86_64-debian-gcc 0.6-3 16.04 39.81 55.85 OK
r-devel-linux-x86_64-fedora-clang 0.6-3 94.21 OK
r-devel-linux-x86_64-fedora-gcc 0.6-3 88.92 OK
r-devel-windows-ix86+x86_64 0.6-3 39.00 138.00 177.00 OK
r-patched-linux-x86_64 0.6-3 20.27 49.78 70.05 OK
r-patched-solaris-x86 0.6-3 109.50 OK
r-release-linux-x86_64 0.6-3 19.03 49.94 68.97 OK
r-release-windows-ix86+x86_64 0.6-3 43.00 99.00 142.00 OK
r-release-osx-x86_64 0.6-3 OK
r-oldrel-windows-ix86+x86_64 0.6-3 51.00 135.00 186.00 OK
r-oldrel-osx-x86_64 0.6-3 OK

Check Details

Version: 0.6-3
Check: tests
Result: ERROR
     Running 'plot.R' [1s/1s]
     Running 'set_units.R' [1s/1s]
     Running 'testthat.R' [5s/6s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library(testthat)
     > library(units)
     udunits system database from /usr/share/xml/udunits
     >
     > test_check("units")
     -- 1. Error: set_units works with symbols in character data, and resolves names
     In '°C', '°C' is not recognized by udunits.
    
     See a table of valid unit symbols and names with valid_udunits().
     Custom user-defined units can be added with install_symbolic_unit().
    
     See a table of valid unit prefixes with valid_udunits_prefixes().
     Prefixes will automatically work with any user-defined unit.
     1: expect_equal(set_units(1:2, deg, mode = "standard"), set_units(1:2, "degree_C", mode = "standard")) at testthat/test_misc.R:91
     2: quasi_label(enquo(object), label, arg = "object")
     3: eval_bare(get_expr(quo), get_env(quo))
     4: set_units(1:2, deg, mode = "standard")
     5: set_units.numeric(1:2, deg, mode = "standard")
     6: as_units(value, ...)
     7: as_units.character(value, ...)
     8: as_units.call(expr, check_is_valid = check_is_valid)
     9: stop(.msg_units_not_recognized(vars[!valid], x), call. = FALSE)
    
     # A tibble: 3 x 1
     a
     [m/s]
     1 1.0000000
     2 0.5000000
     3 0.3333333
     Object of class units:
     num [1:3] 1 0.5 0.333
     - attr(*, "units")=List of 2
     ..$ numerator : chr "m"
     ..$ denominator: chr "s"
     ..- attr(*, "class")= chr "symbolic_units"
     Mixed units: mg (3), mm (3)
     1e+06 [mm], 2e+06 [mm], 3e+06 [mm], 4000 [mg], 5000 [mg], 6000 [mg]
     # A tibble: 6 x 1
     m
     <mixed_units>
     1 1e+06 [mm]
     2 2e+06 [mm]
     3 3e+06 [mm]
     4 4000 [mg]
     5 5000 [mg]
     6 6000 [mg]
     Object of class mixed_units:
     List of 6
     $ :Object of class units:
     num 1e+06
     ..- attr(*, "units")=List of 2
     .. ..$ numerator : chr "mm"
     .. ..$ denominator: chr(0)
     .. ..- attr(*, "class")= chr "symbolic_units"
     $ :Object of class units:
     num 2e+06
     ..- attr(*, "units")=List of 2
     .. ..$ numerator : chr "mm"
     .. ..$ denominator: chr(0)
     .. ..- attr(*, "class")= chr "symbolic_units"
     $ :Object of class units:
     num 3e+06
     ..- attr(*, "units")=List of 2
     .. ..$ numerator : chr "mm"
     .. ..$ denominator: chr(0)
     .. ..- attr(*, "class")= chr "symbolic_units"
     $ :Object of class units:
     num 4000
     ..- attr(*, "units")=List of 2
     .. ..$ numerator : chr "mg"
     .. ..$ denominator: chr(0)
     .. ..- attr(*, "class")= chr "symbolic_units"
     $ :Object of class units:
     num 5000
     ..- attr(*, "units")=List of 2
     .. ..$ numerator : chr "mg"
     .. ..$ denominator: chr(0)
     .. ..- attr(*, "class")= chr "symbolic_units"
     $ :Object of class units:
     num 6000
     ..- attr(*, "units")=List of 2
     .. ..$ numerator : chr "mg"
     .. ..$ denominator: chr(0)
     .. ..- attr(*, "class")= chr "symbolic_units"
     == testthat results ===========================================================
     OK: 375 SKIPPED: 5 WARNINGS: 13 FAILED: 1
     1. Error: set_units works with symbols in character data, and resolves names (@test_misc.R#91)
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-devel-linux-x86_64-debian-clang