Last updated on 2019-04-22 01:48:03 CEST.
Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
---|---|---|---|---|---|---|
r-devel-linux-x86_64-debian-clang | 0.6-2 | 21.28 | 50.21 | 71.49 | ERROR | |
r-devel-linux-x86_64-debian-gcc | 0.6-2 | 15.94 | 39.87 | 55.81 | OK | |
r-devel-linux-x86_64-fedora-clang | 0.6-2 | 91.77 | OK | |||
r-devel-linux-x86_64-fedora-gcc | 0.6-2 | 86.56 | OK | |||
r-devel-windows-ix86+x86_64 | 0.6-2 | 64.00 | 93.00 | 157.00 | OK | |
r-patched-linux-x86_64 | 0.6-2 | 19.75 | 49.70 | 69.45 | OK | |
r-patched-solaris-x86 | 0.6-2 | 105.50 | OK | |||
r-release-linux-x86_64 | 0.6-2 | 19.21 | 46.10 | 65.31 | OK | |
r-release-windows-ix86+x86_64 | 0.6-2 | 40.00 | 102.00 | 142.00 | OK | |
r-release-osx-x86_64 | 0.6-2 | OK | ||||
r-oldrel-windows-ix86+x86_64 | 0.6-2 | 39.00 | 138.00 | 177.00 | OK | |
r-oldrel-osx-x86_64 | 0.6-2 | OK |
Version: 0.6-2
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().
Add custom user-defined units with install_symbolic_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)
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: 380 SKIPPED: 6 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