Last updated on 2024-06-16 01:50:01 CEST.
Package | ERROR | NOTE | OK |
---|---|---|---|
rnrfa | 1 | 1 | 11 |
winfapReader | 1 | 12 |
Current CRAN status: ERROR: 1, NOTE: 1, OK: 11
Version: 2.1.0.5
Check: for non-standard things in the check directory
Result: NOTE
Found the following files/directories:
‘DT’ ‘devtools’ ‘dygraphs’ ‘leaflet’
Flavor: r-devel-linux-x86_64-fedora-gcc
Version: 2.1.0.5
Check: tests
Result: ERROR
Running 'testthat.R' [7s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library("testthat")
> library("rnrfa")
> library("lintr")
>
> if (!curl::has_internet()) {
+ message("No internet, cannot run tests")
+ }else {
+ test_check("rnrfa")
+ }
[ FAIL 37 | WARN 0 | SKIP 1 | PASS 23 ]
══ Skipped tests (1) ═══════════════════════════════════════════════════════════
• On Windows (1): 'test-gdf.R:18:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-catalogue.R:6:3'): Output of catalogue function is expected to be at least 1539x20 ──
`x` not equal to `expected`.
2 element mismatches
Backtrace:
▆
1. └─testthat::expect_that(...) at test-catalogue.R:6:3
2. └─testthat (local) condition(object)
3. └─testthat::expect_equal(x, expected, ..., expected.label = label)
── Failure ('test-catalogue.R:12:3'): Check output of catalogue for Plynlimon area ──
`x` not equal to `expected`.
1/1 mismatches
[1] 0 - 9 == -9
Backtrace:
▆
1. └─testthat::expect_that(...) at test-catalogue.R:12:3
2. └─testthat (local) condition(object)
3. └─testthat::expect_equal(x, expected, ..., expected.label = label)
── Failure ('test-catalogue.R:22:3'): Check output of catalogue for minimum records of 100 years ──
`x` not equal to `expected`.
1 element mismatch
Backtrace:
▆
1. └─testthat::expect_that(...) at test-catalogue.R:22:3
2. └─testthat (local) condition(object)
3. └─testthat::expect_equal(x, expected, ..., expected.label = label)
── Failure ('test-catalogue.R:41:3'): Check the catalogue function filters based on column values ──
dim(x)[1] >= 11 is not TRUE
`actual`: FALSE
`expected`: TRUE
── Failure ('test-catalogue.R:44:3'): Check the catalogue function filters based on column values ──
dim(x)[1] >= 114 is not TRUE
`actual`: FALSE
`expected`: TRUE
── Failure ('test-catalogue.R:47:3'): Check the catalogue function filters based on column values ──
dim(x)[1] >= 110 is not TRUE
`actual`: FALSE
`expected`: TRUE
── Failure ('test-cmr.R:6:3'): Output of cmr function for single station ───────
length(x) >= 660 is not TRUE
`actual`: FALSE
`expected`: TRUE
── Failure ('test-cmr.R:9:3'): Output of cmr function for single station ───────
`x` not equal to `expected`.
1 element mismatch
Backtrace:
▆
1. └─testthat::expect_that(length(x) == 2, equals(TRUE)) at test-cmr.R:9:3
2. └─testthat (local) condition(object)
3. └─testthat::expect_equal(x, expected, ..., expected.label = label)
── Failure ('test-cmr.R:10:3'): Output of cmr function for single station ──────
`x` not equal to `expected`.
Lengths (0, 1) differ (comparison on first 0 components)
Backtrace:
▆
1. └─testthat::expect_that(...) at test-cmr.R:10:3
2. └─testthat (local) condition(object)
3. └─testthat::expect_equal(x, expected, ..., expected.label = label)
── Failure ('test-cmr.R:25:3'): Output of cmr function for multiple stations ───
`x` not equal to `expected`.
1 element mismatch
Backtrace:
▆
1. └─testthat::expect_that(length(x[[1]]) == 2, equals(TRUE)) at test-cmr.R:25:3
2. └─testthat (local) condition(object)
3. └─testthat::expect_equal(x, expected, ..., expected.label = label)
── Failure ('test-gdf.R:7:3'): Output of gdf function for id 18019 ─────────────
"zoo" %in% class(x1) is not TRUE
`actual`: FALSE
`expected`: TRUE
── Failure ('test-gdf.R:11:3'): Output of gdf function for id 18019 ────────────
"list" %in% class(x2) is not TRUE
`actual`: FALSE
`expected`: TRUE
── Failure ('test-gdf.R:12:3'): Output of gdf function for id 18019 ────────────
length(x2) not equal to 2.
1/1 mismatches
[1] 0 - 2 == -2
── Failure ('test-get_ts.R:19:3'): get_ts cmr single works ─────────────────────
class(rain) == "zoo" is not TRUE
`actual`: FALSE
`expected`: TRUE
── Failure ('test-get_ts.R:20:3'): get_ts cmr single works ─────────────────────
length(rain) >= 660 is not TRUE
`actual`: FALSE
`expected`: TRUE
── Failure ('test-get_ts.R:28:3'): get_ts cmr multi works ──────────────────────
class(rain[[1]]) == "zoo" is not TRUE
`actual`: FALSE
`expected`: TRUE
── Failure ('test-get_ts.R:29:3'): get_ts cmr multi works ──────────────────────
length(rain[[1]]) >= 756 is not TRUE
`actual`: FALSE
`expected`: TRUE
── Failure ('test-get_ts.R:30:3'): get_ts cmr multi works ──────────────────────
length(rain[[2]]) >= 660 is not TRUE
`actual`: FALSE
`expected`: TRUE
── Failure ('test-get_ts.R:31:3'): get_ts cmr multi works ──────────────────────
length(rain[[3]]) >= 660 is not TRUE
`actual`: FALSE
`expected`: TRUE
── Failure ('test-get_ts.R:38:3'): get_ts gdf single works ─────────────────────
class(flow) == "zoo" is not TRUE
`actual`: FALSE
`expected`: TRUE
── Failure ('test-get_ts.R:39:3'): get_ts gdf single works ─────────────────────
as.numeric(flow[1]) not equal to 0.056.
Lengths differ: 0 is not 1
── Failure ('test-get_ts.R:40:3'): get_ts gdf single works ─────────────────────
length(flow) >= 731 is not TRUE
`actual`: FALSE
`expected`: TRUE
── Failure ('test-get_ts.R:48:3'): get_ts gdf multi works ──────────────────────
class(flow[[1]]) == "zoo" is not TRUE
`actual`: FALSE
`expected`: TRUE
── Failure ('test-get_ts.R:49:3'): get_ts gdf multi works ──────────────────────
as.numeric(flow[[1]][1]) not equal to 0.637.
Lengths differ: 0 is not 1
── Failure ('test-get_ts.R:50:3'): get_ts gdf multi works ──────────────────────
length(flow[[1]]) >= 16855 is not TRUE
`actual`: FALSE
`expected`: TRUE
── Failure ('test-get_ts.R:51:3'): get_ts gdf multi works ──────────────────────
as.numeric(flow[[2]][1]) not equal to 0.031.
Lengths differ: 0 is not 1
── Failure ('test-get_ts.R:52:3'): get_ts gdf multi works ──────────────────────
length(flow[[2]]) >= 13159 is not TRUE
`actual`: FALSE
`expected`: TRUE
── Failure ('test-get_ts.R:53:3'): get_ts gdf multi works ──────────────────────
as.numeric(flow[[3]][1]) not equal to 1.262.
Lengths differ: 0 is not 1
── Failure ('test-get_ts.R:54:3'): get_ts gdf multi works ──────────────────────
length(flow[[3]]) >= 12416 is not TRUE
`actual`: FALSE
`expected`: TRUE
── Failure ('test-get_ts.R:61:3'): Check get_ts works with other types ─────────
class(x1) == "zoo" is not TRUE
`actual`: FALSE
`expected`: TRUE
── Failure ('test-get_ts.R:63:3'): Check get_ts works with other types ─────────
class(x1) == "zoo" is not TRUE
`actual`: FALSE
`expected`: TRUE
── Failure ('test-get_ts.R:65:3'): Check get_ts works with other types ─────────
table(x1$rejected[1:37]) not equal to structure(...).
names for current but not for target
Attributes: < Component "dim": Mean absolute difference: 2 >
Attributes: < Component "dimnames": Component "": target is NULL, current is character >
Numeric: lengths (0, 2) differ
── Failure ('test-get_ts.R:71:3'): Check get_ts works with other types ─────────
class(x2) == "zoo" is not TRUE
`actual`: FALSE
`expected`: TRUE
── Failure ('test-get_ts.R:72:3'): Check get_ts works with other types ─────────
table(x2$rejected[1:11]) not equal to structure(...).
names for current but not for target
Attributes: < Component "dim": Mean absolute difference: 2 >
Attributes: < Component "dimnames": Component "": target is NULL, current is character >
Numeric: lengths (0, 2) differ
── Failure ('test-get_ts.R:77:3'): Check get_ts works with other types ─────────
table(x3$rejected[1:176]) not equal to structure(...).
names for current but not for target
Attributes: < Component "dim": Mean absolute difference: 1 >
Attributes: < Component "dimnames": Component "": target is NULL, current is character >
Numeric: lengths (0, 1) differ
── Error ('test-seasonal_averages.R:5:3'): seasonal_averages works ─────────────
Error in `seasonal_averages(timeseries = cmr(18019), season = "Spring")`: object 'tslist' not found
Backtrace:
▆
1. └─rnrfa::seasonal_averages(timeseries = cmr(18019), season = "Spring") at test-seasonal_averages.R:5:3
── Failure ('test-station_ids.R:5:3'): station_ids works ───────────────────────
length(x) >= 1580 not equal to TRUE.
1 element mismatch
[ FAIL 37 | WARN 0 | SKIP 1 | PASS 23 ]
Error: Test failures
Execution halted
Flavor: r-devel-windows-x86_64
Version: 2.1.0.5
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
--- re-building 'rnrfa-vignette.Rmd' using rmarkdown
trying URL 'https://cloud.r-project.org/bin/windows/contrib/4.5/devtools_2.4.5.zip'
Content type 'application/zip' length 441501 bytes (431 KB)
==================================================
downloaded 431 KB
trying URL 'https://cloud.r-project.org/bin/windows/contrib/4.5/DT_0.33.zip'
Content type 'application/zip' length 2027216 bytes (1.9 MB)
==================================================
downloaded 1.9 MB
trying URL 'https://cloud.r-project.org/bin/windows/contrib/4.5/leaflet_2.2.2.zip'
Content type 'application/zip' length 2310444 bytes (2.2 MB)
==================================================
downloaded 2.2 MB
trying URL 'https://cloud.r-project.org/bin/windows/contrib/4.5/dygraphs_1.1.1.6.zip'
Content type 'application/zip' length 445167 bytes (434 KB)
==================================================
downloaded 434 KB
Quitting from lines 201-202 [unnamed-chunk-13] (rnrfa-vignette.Rmd)
Error: processing vignette 'rnrfa-vignette.Rmd' failed with diagnostics:
arguments imply differing number of rows: 0, 1
--- failed re-building 'rnrfa-vignette.Rmd'
SUMMARY: processing the following file failed:
'rnrfa-vignette.Rmd'
Error: Vignette re-building failed.
Execution halted
Flavor: r-devel-windows-x86_64
Current CRAN status: ERROR: 1, OK: 12
Version: 0.1-5
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
--- re-building 'winfapReader.Rmd' using rmarkdown
Quitting from lines 163-176 [unnamed-chunk-4] (winfapReader.Rmd)
Error: processing vignette 'winfapReader.Rmd' failed with diagnostics:
Can't subset columns that don't exist.
✖ Column `feh-pooling` doesn't exist.
--- failed re-building 'winfapReader.Rmd'
SUMMARY: processing the following file failed:
'winfapReader.Rmd'
Error: Vignette re-building failed.
Execution halted
Flavor: r-devel-windows-x86_64