- using R Under development (unstable) (2024-04-14 r86416)
- 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 ‘openscoring/DESCRIPTION’ ... OK
- this is package ‘openscoring’ version ‘1.0.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 ‘openscoring’ 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 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 examples ... ERROR
Running examples in ‘openscoring-Ex.R’ failed
The error most likely occurred in:
> ### Name: oscai
> ### Title: Score with an AI A basic function to score the creativity with
> ### an AI. See the OpenScoring site for more information. Requires an
> ### internet connection.
> ### Aliases: oscai
>
> ### ** Examples
>
> df <- data.frame(
+ stimulus = c("brick", "hammer", "sponge"),
+ response = c("butter for trolls", "make Thor jealous", "make it play in a kids show")
+ )
>
> df <- oscai(df, stimulus, response, model = "davinci2")
Error in curl::curl_fetch_memory(url, handle = handle) :
SSL peer certificate or SSH remote key was not OK: [openscoring.du.edu] SSL certificate problem: unable to get local issuer certificate
Calls: oscai ... request_fetch -> request_fetch.write_memory -> <Anonymous>
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... ERROR
Running ‘testthat.R’
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(openscoring)
>
> test_check("openscoring")
[ FAIL 4 | WARN 0 | SKIP 0 | PASS 4 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-oscai.R:7:3'): API responses ─────────────────────────────────
Expected `oscai(df, stimulus, response)` to run without any errors.
i Actually got a <simpleError> with text:
SSL peer certificate or SSH remote key was not OK: [openscoring.du.edu] SSL certificate problem: unable to get local issuer certificate
── Failure ('test-oscai.R:11:3'): chatgpt model works ──────────────────────────
Expected `oscai(df, stimulus, response, model = "chatgpt")` to run without any errors.
i Actually got a <simpleError> with text:
SSL peer certificate or SSH remote key was not OK: [openscoring.du.edu] SSL certificate problem: unable to get local issuer certificate
── Failure ('test-oscai.R:15:3'): babbage2 model works ─────────────────────────
Expected `oscai(df, stimulus, response, model = "babbage2")` to run without any errors.
i Actually got a <simpleError> with text:
SSL peer certificate or SSH remote key was not OK: [openscoring.du.edu] SSL certificate problem: unable to get local issuer certificate
── Failure ('test-oscai.R:19:3'): davinci2 model works ─────────────────────────
Expected `oscai(df, stimulus, response, model = "davinci2")` to run without any errors.
i Actually got a <simpleError> with text:
SSL peer certificate or SSH remote key was not OK: [openscoring.du.edu] SSL certificate problem: unable to get local issuer certificate
[ FAIL 4 | WARN 0 | SKIP 0 | PASS 4 ]
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