CRAN Package Check Results for Package units

Last updated on 2019-08-17 11:47:38 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.6-3 22.88 48.59 71.47 ERROR
r-devel-linux-x86_64-debian-gcc 0.6-3 13.65 39.47 53.12 OK
r-devel-linux-x86_64-fedora-clang 0.6-3 96.05 OK
r-devel-linux-x86_64-fedora-gcc 0.6-3 90.94 OK
r-devel-windows-ix86+x86_64 0.6-3 56.00 190.00 246.00 OK
r-patched-linux-x86_64 0.6-3 18.04 49.83 67.87 OK
r-patched-solaris-x86 0.6-3 102.30 OK
r-release-linux-x86_64 0.6-3 18.10 50.30 68.40 OK
r-release-windows-ix86+x86_64 0.6-3 62.00 129.00 191.00 OK
r-release-osx-x86_64 0.6-3 OK
r-oldrel-windows-ix86+x86_64 0.6-3 85.00 149.00 234.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/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: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: 330 | 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

Version: 0.6-3
Check: re-building of vignette outputs
Result: WARN
    Error(s) in re-building vignettes:
     ...
    --- re-building 'measurement_units_in_R.Rmd' using rmarkdown
    --- finished re-building 'measurement_units_in_R.Rmd'
    
    --- re-building 'units.Rmd' using rmarkdown
    Quitting from lines 81-82 (units.Rmd)
    Error: processing vignette 'units.Rmd' failed with diagnostics:
    invalid UTF-8 byte sequence detected; try calling stri_enc_toutf8()
    --- failed re-building 'units.Rmd'
    
    SUMMARY: processing the following file failed:
     'units.Rmd'
    
    Error: Vignette re-building failed.
    Execution halted
Flavor: r-devel-linux-x86_64-debian-clang