* using log directory 'd:/Rcompile/CRANpkg/local/4.3/finna.Rcheck' * 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 'finna/DESCRIPTION' ... OK * this is package 'finna' version '0.1.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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'finna' can be installed ... OK * checking installed package size ... 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 ... [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 ... [2s] 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 ... [7s] NOTE search_finna : : no visible global function definition for '%||%' search_finna : : : no visible global function definition for '%||%' search_publisher : : no visible global function definition for '%||%' Undefined global functions or variables: %||% * 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 installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [3s] ERROR Running examples in 'finna-Ex.R' failed The error most likely occurred in: > ### Name: analyze_metadata > ### Title: Analyze Refined Finna Metadata > ### Aliases: analyze_metadata > > ### ** Examples > > library(finna) > sibelius_data <- search_finna("sibelius") Warning in search_finna("sibelius") : Default limit of 100 records is being used. Specify 'limit' argument for more records. Error in record$id %||% NA : could not find function "%||%" Calls: search_finna -> lapply -> FUN Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [9s] ERROR Running 'testthat.R' [8s] Running the tests in 'tests/testthat.R' failed. Complete output: > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(finna) > > test_check("finna") Total results found: 2062419 Data fetching completed in 1.82 seconds. Total results found: 3 Data fetching completed in 0.24 seconds. Total results found: 2062419 Data fetching completed in 0.49 seconds. No encoding supplied: defaulting to UTF-8. [ FAIL 2 | WARN 0 | SKIP 0 | PASS 61 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-search_publisher.R:3:3'): search_publisher performs a basic search correctly ── Error in `record$id %||% NA`: could not find function "%||%" Backtrace: ▆ 1. ├─base::suppressWarnings(search_publisher("sibelius", limit = 10)) at test-search_publisher.R:3:3 2. │ └─base::withCallingHandlers(...) 3. └─finna::search_publisher("sibelius", limit = 10) 4. └─base::lapply(...) 5. └─finna (local) FUN(X[[i]], ...) ── Error ('test_search_finna.R:3:3'): search_finna performs a basic search correctly ── Error in `record$id %||% NA`: could not find function "%||%" Backtrace: ▆ 1. ├─base::suppressWarnings(search_finna("sibelius", type = "Author")) at test_search_finna.R:3:3 2. │ └─base::withCallingHandlers(...) 3. └─finna::search_finna("sibelius", type = "Author") 4. └─base::lapply(...) 5. └─finna (local) FUN(X[[i]], ...) [ FAIL 2 | WARN 0 | SKIP 0 | PASS 61 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes in 'inst/doc' ... OK * checking re-building of vignette outputs ... [3s] ERROR Error(s) in re-building vignettes: --- re-building 'vignette.Rmd' using rmarkdown Quitting from lines 23-26 [unnamed-chunk-1] (vignette.Rmd) Error: processing vignette 'vignette.Rmd' failed with diagnostics: could not find function "%||%" --- failed re-building 'vignette.Rmd' SUMMARY: processing the following file failed: 'vignette.Rmd' Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... [22s] OK * checking HTML version of manual ... [3s] OK * DONE Status: 3 ERRORs, 1 NOTE