Last updated on 2024-06-13 04:52:18 CEST.
Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
---|---|---|---|---|---|---|
r-devel-linux-x86_64-debian-clang | 0.4.3 | 1.82 | 27.68 | 29.50 | OK | |
r-devel-linux-x86_64-debian-gcc | 0.4.3 | 1.71 | 20.93 | 22.64 | ERROR | |
r-devel-linux-x86_64-fedora-clang | 0.4.3 | 38.43 | OK | |||
r-devel-linux-x86_64-fedora-gcc | 0.4.3 | 36.28 | OK | |||
r-devel-windows-x86_64 | 0.4.3 | 3.00 | 43.00 | 46.00 | OK | |
r-patched-linux-x86_64 | 0.4.3 | 2.66 | 26.52 | 29.18 | OK | |
r-release-linux-x86_64 | 0.4.3 | 2.62 | 27.01 | 29.63 | OK | |
r-release-macos-arm64 | 0.4.3 | 18.00 | OK | |||
r-release-macos-x86_64 | 0.4.3 | 25.00 | OK | |||
r-release-windows-x86_64 | 0.4.3 | 4.00 | 43.00 | 47.00 | OK | |
r-oldrel-macos-arm64 | 0.4.3 | 19.00 | OK | |||
r-oldrel-macos-x86_64 | 0.4.3 | 33.00 | OK | |||
r-oldrel-windows-x86_64 | 0.4.3 | 4.00 | 44.00 | 48.00 | OK |
Version: 0.4.3
Check: package dependencies
Result: NOTE
Package suggested but not available for checking: ‘blob’
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.4.3
Check: tests
Result: ERROR
Running ‘a-init-db.R’ [0s/1s]
Running ‘b-import-db.R’ [0s/1s]
Running ‘c-export-db.R’ [0s/1s]
Running ‘d-types.R’ [0s/1s]
Running the tests in ‘tests/d-types.R’ failed.
Complete output:
> library(bcputility)
> # test map data types
> testTypeMapping <- function() {
+ mapDataTypes(data.frame(
+ int = 1:5L,
+ numeric = seq(0, 1, length.out = 5),
+ character = LETTERS[1:5],
+ factor = paste(LETTERS[1:5], LETTERS[1:5], sep = ''),
+ logical = c(TRUE, FALSE, TRUE, FALSE, TRUE),
+ date = seq(Sys.Date() - 4, Sys.Date(), 1L),
+ datetime = seq(Sys.time() - 5, Sys.time(), length.out = 5)
+ )
+ ) |>
+ identical(
+ c(int = "TINYINT", numeric = "FLOAT", character = "VARCHAR(1)",
+ factor = "VARCHAR(2)", logical = "BIT", date = "DATE",
+ datetime = "DATETIME")) |>
+ stopifnot()
+ # test varChar
+ (varChar(paste(rep('A', 1), collapse = '')) == 'VARCHAR(1)') |>
+ stopifnot()
+ (varChar(paste(rep('A', 8001), collapse = '')) == 'VARCHAR(MAX)') |>
+ stopifnot()
+ (varChar(NA_character_) == 'VARCHAR(1)') |>
+ stopifnot()
+ # test varBinary
+ (varBinary(blob::as_blob(raw(length = 1))) == 'VARBINARY(1)') |>
+ stopifnot()
+ (varBinary(blob::as_blob(raw(length = 8001))) == 'VARBINARY(MAX)') |>
+ stopifnot()
+ (varBinary(blob::as_blob(NA)) == 'VARBINARY(0)') |>
+ stopifnot()
+ (int(2) == 'TINYINT') |>
+ stopifnot()
+ (int(2^8) == 'SMALLINT') |>
+ stopifnot()
+ (int(2^15) == 'INTEGER') |>
+ stopifnot()
+ (int(2^31) == 'BIGINT') |>
+ stopifnot()
+ }
> testTypeMapping()
Error in loadNamespace(x) : there is no package called 'blob'
Calls: testTypeMapping ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc