- using R version 4.3.3 (2024-02-29 ucrt)
- using platform: x86_64-w64-mingw32 (64-bit)
- R was compiled by
gcc.exe (GCC) 12.3.0
GNU Fortran (GCC) 12.3.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
- checking for file 'valet/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'valet' version '0.9.0'
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking whether package 'valet' can be installed ... OK
See the install log for details.
- checking installed package size ... OK
- checking package directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking R files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [2s] OK
- checking whether the package can be loaded with stated dependencies ... [1s] OK
- checking whether the package can be unloaded cleanly ... [1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s] OK
- checking loading without being on the library search path ... [2s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [4s] OK
- checking Rd files ... [1s] OK
- checking Rd metadata ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking examples ... [242s] ERROR
Running examples in 'valet-Ex.R' failed
The error most likely occurred in:
> ### Name: get_details
> ### Title: Get series or series-group details
> ### Aliases: get_details
>
> ### ** Examples
>
> get_details("CES_C4E_LOSE_JOB_SK")
No encoding supplied: defaulting to UTF-8.
Error: lexical error: invalid char in json text.
<HTML><HEAD> <TITLE>Access Deni
(right here) ------^
Execution halted
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [24m] ERROR
Running 'testthat.R' [24m]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(valet)
>
> test_check("valet")
No encoding supplied: defaulting to UTF-8.
No encoding supplied: defaulting to UTF-8.
No encoding supplied: defaulting to UTF-8.
No encoding supplied: defaulting to UTF-8.
[ FAIL 6 | WARN 0 | SKIP 0 | PASS 4 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-get_details.R:2:3'): get_details returns full series ───────────
Error: lexical error: invalid char in json text.
<HTML><HEAD> <TITLE>Access Deni
(right here) ------^
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test-get_details.R:2:3
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─valet::get_details("LEGACY_NOON_RATES", group = T)
5. └─jsonlite::fromJSON(content(resp, "text"))
6. └─jsonlite:::parse_and_simplify(...)
7. └─jsonlite:::parseJSON(txt, bigint_as_char)
8. └─jsonlite:::parse_string(txt, bigint_as_char)
── Error ('test-get_group.R:2:3'): get_group returns full dataset ──────────────
Error: lexical error: invalid char in json text.
<HTML><HEAD> <TITLE>Access Deni
(right here) ------^
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test-get_group.R:2:3
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─base::nrow(get_group("LEGACY_NOON_RATES"))
5. └─valet::get_group("LEGACY_NOON_RATES")
6. └─valet::valet(name = name, T, ...)
7. └─jsonlite::fromJSON(content(resp, "text"))
8. └─jsonlite:::parse_and_simplify(...)
9. └─jsonlite:::parseJSON(txt, bigint_as_char)
10. └─jsonlite:::parse_string(txt, bigint_as_char)
── Error ('test-get_list.R:2:3'): get_list returns a tibble ────────────────────
Error in `open.connection(structure(4L, class = c("curl", "connection"), conn_id = <pointer: 0x0000000000000143>),
"rb")`: HTTP error 403.
Backtrace:
▆
1. ├─testthat::expect_s3_class(get_list("series"), class = "tbl") at test-get_list.R:2:3
2. │ └─testthat::quasi_label(enquo(object), arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─valet::get_list("series")
5. │ └─readr::read_csv(url, skip = 4, col_types = cols())
6. │ └─vroom::vroom(...)
7. │ └─vroom:::vroom_(...)
8. ├─base (local) `<fn>`(`<curl>`, "rb")
9. └─base::open.connection(`<curl>`, "rb")
── Error ('test-get_list.R:7:3'): get_list returns correct categories ──────────
Error in `open.connection(structure(5L, class = c("curl", "connection"), conn_id = <pointer: 0x0000000000000150>),
"rb")`: HTTP error 403.
Backtrace:
▆
1. ├─testthat::expect_named(...) at test-get_list.R:7:3
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─valet::get_list("groups")
5. │ └─readr::read_csv(url, skip = 4, col_types = cols())
6. │ └─vroom::vroom(...)
7. │ └─vroom:::vroom_(...)
8. ├─base (local) `<fn>`(`<curl>`, "rb")
9. └─base::open.connection(`<curl>`, "rb")
── Error ('test-get_series.R:2:3'): get_series returns full dataset ────────────
Error: lexical error: invalid char in json text.
<!DOCTYPE html PUBLIC "-//W3C//
(right here) ------^
Backtrace:
▆
1. ├─testthat::expect_equal(nrow(get_series("SWP-R1N1983Q2")), 78) at test-get_series.R:2:3
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─base::nrow(get_series("SWP-R1N1983Q2"))
5. └─valet::get_series("SWP-R1N1983Q2")
6. └─valet::valet(...)
7. └─jsonlite::fromJSON(content(resp, "text"))
8. └─jsonlite:::parse_and_simplify(...)
9. └─jsonlite:::parseJSON(txt, bigint_as_char)
10. └─jsonlite:::parse_string(txt, bigint_as_char)
── Error ('test-get_series.R:6:3'): get_series includes date variable ──────────
Error: lexical error: invalid char in json text.
<HTML><HEAD> <TITLE>Access Deni
(right here) ------^
Backtrace:
▆
1. ├─testthat::expect_s3_class(...) at test-get_series.R:6:3
2. │ └─testthat::quasi_label(enquo(object), arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─valet::get_series("CES_C4E_LOSE_JOB_SK")
5. └─valet::valet(...)
6. └─jsonlite::fromJSON(content(resp, "text"))
7. └─jsonlite:::parse_and_simplify(...)
8. └─jsonlite:::parseJSON(txt, bigint_as_char)
9. └─jsonlite:::parse_string(txt, bigint_as_char)
[ FAIL 6 | WARN 0 | SKIP 0 | PASS 4 ]
Error: Test failures
Execution halted
- checking PDF version of manual ... [16s] OK
- checking HTML version of manual ... [1s] OK
- DONE
Status: 2 ERRORs