* using log directory ‘/data/gannet/ripley/R/packages/tests-Suggests/rjsoncons.Rcheck’ * using R Under development (unstable) (2024-04-19 r86451) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc-13 (GCC) 13.2.0 GNU Fortran (GCC) 13.2.0 * running under: Fedora Linux 36 (Workstation Edition) * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘rjsoncons/DESCRIPTION’ ... OK * this is package ‘rjsoncons’ version ‘1.3.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 ‘rjsoncons’ can be installed ... [516s/351s] OK * used C++ compiler: ‘g++-13 (GCC) 13.2.0’ * checking package directory ... OK * checking ‘build’ 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 code 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 line endings in C/C++/Fortran sources/headers ... OK * checking line endings in Makefiles ... OK * checking compilation flags in Makevars ... OK * checking for GNU extensions in Makefiles ... OK * checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK * checking use of PKG_*FLAGS in Makefiles ... OK * checking use of SHLIB_OPENMP_*FLAGS in Makefiles ... OK * checking pragmas in C/C++ headers and code ... OK * checking compilation flags used ... OK * checking compiled code ... OK * checking installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... ERROR Running examples in ‘rjsoncons-Ex.R’ failed The error most likely occurred in: > ### Name: j_flatten > ### Title: Flatten and find keys or values in JSON or NDJSON documents > ### Aliases: j_flatten j_find_values j_find_values_grep j_find_keys > ### j_find_keys_grep flatten_NDJSON > > ### ** Examples > > json <- '{ + "discards": { + "1000": "Record does not exist", + "1004": "Queue limit exceeded", + "1010": "Discarding timed-out partial msg" + }, + "warnings": { + "0": "Phone number missing country code", + "1": "State code missing", + "2": "Zip code missing" + } + }' > > ## JSONpointer > j_flatten(json) |> + cat("\n") {"/discards/1000":"Record does not exist","/discards/1004":"Queue limit exceeded","/discards/1010":"Discarding timed-out partial msg","/warnings/0":"Phone number missing country code","/warnings/1":"State code missing","/warnings/2":"Zip code missing"} > > ## JSONpath > j_flatten(json, as = "R", path_type = "JSONpath") |> + str() List of 6 $ $['discards']['1000']: chr "Record does not exist" $ $['discards']['1004']: chr "Queue limit exceeded" $ $['discards']['1010']: chr "Discarding timed-out partial msg" $ $['warnings']['0'] : chr "Phone number missing country code" $ $['warnings']['1'] : chr "State code missing" $ $['warnings']['2'] : chr "Zip code missing" > > j_find_values(json, "Zip code missing", as = "tibble") Error in loadNamespace(x) : there is no package called ‘tibble’ Calls: j_find_values ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘tinytest.R’ ERROR Running the tests in ‘tests/tinytest.R’ failed. Complete output: > if (requireNamespace("tinytest", quietly = TRUE)) + tinytest::test_package("rjsoncons") test_as_r.R................... 0 tests test_as_r.R................... 1 tests OK test_as_r.R................... 2 tests OK test_as_r.R................... 3 tests OK test_as_r.R................... 4 tests OK test_as_r.R................... 5 tests OK test_as_r.R................... 6 tests OK test_as_r.R................... 7 tests OK test_as_r.R................... 8 tests OK test_as_r.R................... 9 tests OK test_as_r.R................... 10 tests OK test_as_r.R................... 11 tests OK test_as_r.R................... 12 tests OK test_as_r.R................... 13 tests OK test_as_r.R................... 14 tests OK test_as_r.R................... 15 tests OK test_as_r.R................... 16 tests OK test_as_r.R................... 17 tests OK test_as_r.R................... 18 tests OK test_as_r.R................... 19 tests OK test_as_r.R................... 20 tests OK test_as_r.R................... 21 tests OK test_as_r.R................... 22 tests OK test_as_r.R................... 23 tests OK test_as_r.R................... 24 tests OK test_as_r.R................... 25 tests OK test_as_r.R................... 26 tests OK test_as_r.R................... 27 tests OK test_as_r.R................... 28 tests OK test_as_r.R................... 29 tests OK test_as_r.R................... 30 tests OK test_as_r.R................... 31 tests OK test_as_r.R................... 32 tests OK test_as_r.R................... 33 tests OK test_as_r.R................... 34 tests OK test_as_r.R................... 35 tests OK test_as_r.R................... 36 tests OK test_as_r.R................... 37 tests OK test_as_r.R................... 38 tests OK test_as_r.R................... 39 tests OK test_as_r.R................... 40 tests OK test_as_r.R................... 41 tests OK test_as_r.R................... 42 tests OK test_as_r.R................... 43 tests OK test_as_r.R................... 44 tests OK test_as_r.R................... 45 tests OK test_as_r.R................... 45 tests OK test_as_r.R................... 45 tests OK test_as_r.R................... 45 tests OK test_as_r.R................... 46 tests OK test_as_r.R................... 47 tests OK test_as_r.R................... 48 tests OK test_as_r.R................... 49 tests OK test_as_r.R................... 50 tests OK Error in loadNamespace(x) : there is no package called 'jsonlite' Calls: ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... OK * checking PDF version of manual ... [8s/12s] 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: 2 ERRORs See ‘/data/gannet/ripley/R/packages/tests-Suggests/rjsoncons.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 6:51.98, 532.72 + 29.33