Last updated on 2024-05-31 20:54:53 CEST.
Package | ERROR | OK |
---|---|---|
noaaoceans | 1 | 11 |
Current CRAN status: ERROR: 1, OK: 11
Version: 0.3.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [3s/9s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(noaaoceans)
>
> test_check("noaaoceans")
[ FAIL 1 | WARN 0 | SKIP 10 | PASS 18 ]
══ Skipped tests (10) ══════════════════════════════════════════════════════════
• On CRAN (8): 'test_data_type.R:6:5', 'test_data_type.R:19:5',
'test_data_type.R:29:5', 'test_data_type.R:39:5', 'test_data_type.R:45:5',
'test_station_inventory.R:8:5', 'test_station_inventory.R:13:5',
'test_station_inventory.R:18:5'
• Skipping until I can find a station with a notice (2):
'test_query_metadata.R:35:5', 'test_query_metadata.R:40:5'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_query_metadata.R:7:5'): Data Frame is returned for all stations ──
Error: lexical error: invalid char in json text.
<?xml version="1.0" encoding="U
(right here) ------^
Backtrace:
▆
1. ├─testthat::expect_is(query_metadata(), "data.frame") at test_query_metadata.R:7:5
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─noaaoceans::query_metadata()
5. └─jsonlite::fromJSON(content, flatten = TRUE, simplifyDataFrame = TRUE)
6. └─jsonlite:::parse_and_simplify(...)
7. └─jsonlite:::parseJSON(txt, bigint_as_char)
8. └─jsonlite:::parse_string(txt, bigint_as_char)
[ FAIL 1 | WARN 0 | SKIP 10 | PASS 18 ]
Error: Test failures
Execution halted
Flavor: r-devel-linux-x86_64-debian-clang