- using R Under development (unstable) (2023-03-12 r83975)
- using platform: x86_64-pc-linux-gnu (64-bit)
- R was compiled by
clang version 16.0.0
GNU Fortran (GCC) 12.2.1 20221121 (Red Hat 12.2.1-4)
- running under: Fedora Linux 36 (Workstation Edition)
- using session charset: UTF-8
- using option ‘--no-stop-on-test-error’
- checking for file ‘rfieldclimate/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘rfieldclimate’ version ‘0.1.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 executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘rfieldclimate’ can be installed ... OK
- 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 ... OK
- checking whether the package can be loaded with stated dependencies ... OK
- checking whether the package can be unloaded cleanly ... OK
- checking whether the namespace can be loaded with stated dependencies ... OK
- checking whether the namespace can be unloaded cleanly ... OK
- checking loading without being on the library search path ... 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 ... OK
- checking Rd files ... OK
- checking Rd metadata ... OK
- checking Rd line widths ... 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 LazyData ... NOTE
'LazyData' is specified without a 'data' directory
- checking examples ... OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... ERROR
Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(rfieldclimate)
>
> test_check("rfieldclimate")
[ FAIL 1 | WARN 0 | SKIP 4 | PASS 3 ]
══ Skipped tests ═══════════════════════════════════════════════════════════════
• Sys.getenv("FC_PRIVATE_KEY") == "" is TRUE (4)
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-fc_request.R:4:3'): fc_request fails with invalid credentials ──
`fc_request("GET", "/user", public_key = "invalid", private_key = "invalid")` threw an error with unexpected message.
Expected match: "fieldclimate API request failed"
Actual message: "lexical error: invalid char in json text.\n <br /> <b>Fatal error</b>: Unc\n (right here) ------^\n"
Backtrace:
▆
1. ├─testthat::expect_error(...) at test-fc_request.R:4:2
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. ├─rfieldclimate::fc_request(...)
7. │ └─... %>% jsonlite::fromJSON(simplifyVector = FALSE)
8. └─jsonlite::fromJSON(., simplifyVector = FALSE)
9. └─jsonlite:::parse_and_simplify(...)
10. └─jsonlite:::parseJSON(txt, bigint_as_char)
11. └─jsonlite:::parse_string(txt, bigint_as_char)
[ FAIL 1 | WARN 0 | SKIP 4 | PASS 3 ]
Error: Test failures
Execution halted
- checking PDF version of manual ... OK
- checking HTML version of manual ... OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 1 ERROR, 1 NOTE