* using log directory ‘/data/gannet/ripley/R/packages/tests-noLD/rKolada.Rcheck’ * using R Under development (unstable) (2022-11-26 r83384) * using platform: x86_64-pc-linux-gnu (64-bit) * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘rKolada/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘rKolada’ version ‘0.2.1’ * 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 ‘rKolada’ can be installed ... [5s/17s] OK * 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 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 ... [7s/12s] 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 installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... ERROR Running examples in ‘rKolada-Ex.R’ failed The error most likely occurred in: > ### Name: get_kpi > ### Title: Download metadata for a specific entity from the Kolada API > ### Aliases: get_kpi get_kpi_groups get_ou get_municipality > ### get_municipality_groups > > ### ** Examples > > # Download KPI table and store a cache copy of the results in a temporary folder > # (to actually download all available data, don't specify max_results) > kpi_df <- get_kpi(cache = TRUE, max_results = 100) No encoding supplied: defaulting to UTF-8. Error: lexical error: invalid char in json text. library("testthat") > library("rKolada") > > test_check("rKolada") [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test_api.R:3'): (code run outside of `test_that()`) ───────────────── Error: lexical error: invalid char in json text.