CRAN Package Check Results for Package units

Last updated on 2019-09-19 05:47:34 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.6-4 22.24 49.39 71.63 ERROR
r-devel-linux-x86_64-debian-gcc 0.6-4 15.66 38.51 54.17 OK
r-devel-linux-x86_64-fedora-clang 0.6-4 98.92 OK
r-devel-linux-x86_64-fedora-gcc 0.6-4 92.70 OK
r-devel-windows-ix86+x86_64 0.6-4 62.00 106.00 168.00 OK
r-patched-linux-x86_64 0.6-4 17.86 48.86 66.72 OK
r-patched-solaris-x86 0.6-4 105.20 OK
r-release-linux-x86_64 0.6-4 18.41 49.76 68.17 OK
r-release-windows-ix86+x86_64 0.6-4 41.00 101.00 142.00 OK
r-release-osx-x86_64 0.6-4 OK
r-oldrel-windows-ix86+x86_64 0.6-4 38.00 104.00 142.00 OK
r-oldrel-osx-x86_64 0.6-4 OK

Check Details

Version: 0.6-4
Check: tests
Result: ERROR
     Running 'plot.R' [1s/1s]
     Running 'set_units.R' [1s/1s]
     Running 'testthat.R' [5s/7s]
    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:89
     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: 416 | SKIPPED: 5 | WARNINGS: 13 | FAILED: 1 ]
     1. Error: set_units works with symbols in character data, and resolves names (@test_misc.R#89)
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-devel-linux-x86_64-debian-clang