- using R Under development (unstable) (2023-09-19 r85177)
- 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 ‘openalexR/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘openalexR’ version ‘1.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 ‘openalexR’ can be installed ... OK
See the install log for details.
- 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 whether startup messages can be suppressed ... 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 contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking examples ... ERROR
Running examples in ‘openalexR-Ex.R’ failed
The error most likely occurred in:
> ### Name: show_authors
> ### Title: Simplify the OpenAlex authors result
> ### Aliases: show_authors
>
> ### ** Examples
>
>
> show_authors(oa_fetch(
+ identifier = c("A923435168", "A2208157607"),
+ verbose = TRUE
+ ))
Requesting url: https://api.openalex.org/authors?filter=openalex%3AA923435168%7CA2208157607
Warning in oa_fetch(identifier = c("A923435168", "A2208157607"), verbose = TRUE) :
No collection found!
Error in x[, c("id", "display_name", "orcid", "works_count", "cited_by_count", :
incorrect number of dimensions
Calls: show_authors -> simp_func
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [10s/15s] ERROR
Running ‘testthat.R’ [9s/15s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(openalexR)
Thank you for using openalexR!
To acknowledge our work, please cite the package by calling
`citation("openalexR")`.
>
> test_check("openalexR")
Identifier is missing, please specify filter or search argument.
[ FAIL 1 | WARN 0 | SKIP 20 | PASS 42 ]
══ Skipped tests (20) ══════════════════════════════════════════════════════════
• On CRAN (20): 'test-oa2bibliometrix.R:2:3', 'test-oa_fetch.R:2:3',
'test-oa_fetch.R:14:3', 'test-oa_fetch.R:25:3', 'test-oa_fetch.R:36:3',
'test-oa_fetch.R:62:3', 'test-oa_fetch.R:80:3', 'test-oa_fetch.R:100:3',
'test-oa_fetch.R:107:3', 'test-oa_fetch.R:127:3', 'test-oa_fetch.R:149:3',
'test-oa_fetch.R:216:3', 'test-oa_fetch.R:280:3', 'test-oa_fetch.R:289:3',
'test-oa_snowball.R:2:3', 'test-oa_snowball.R:30:3',
'test-oa_snowball.R:40:3', 'test-oa_snowball.R:57:3', 'test-simplify.R:2:3',
'test-simplify.R:13:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-oa_fetch.R:337:3'): oa_fetch works with 1 identifier ───────────
Error: lexical error: invalid char in json text.
<!doctype html> <html lang=en>
(right here) ------^
Backtrace:
▆
1. └─openalexR::oa_fetch(identifier = "A1969205032") at test-oa_fetch.R:337:2
2. └─openalexR::oa_request(...)
3. └─openalexR:::api_request(query_url, ua, query = query_ls, api_key = api_key)
4. └─jsonlite::fromJSON(...)
5. └─jsonlite:::parse_and_simplify(...)
6. └─jsonlite:::parseJSON(txt, bigint_as_char)
7. └─jsonlite:::parse_string(txt, bigint_as_char)
[ FAIL 1 | WARN 0 | SKIP 20 | PASS 42 ]
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: 2 ERRORs