- using R version 4.5.2 Patched (2026-01-31 r89382)
- using platform: aarch64-apple-darwin20
- R was compiled by
Apple clang version 16.0.0 (clang-1600.0.26.6)
GNU Fortran (GCC) 14.2.0
- running under: macOS Ventura 13.7.8
- using session charset: UTF-8
- checking for file ‘competitiontoolbox/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘competitiontoolbox’ version ‘0.7.4’
- 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 ‘competitiontoolbox’ can be installed ... [1s/2s] OK
See the install log for details.
- checking installed package size ... OK
- 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 ... [0s/0s] OK
- checking whether the package can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the package can be unloaded cleanly ... [0s/0s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the namespace can be unloaded cleanly ... [0s/0s] OK
- checking loading without being on the library search path ... [0s/0s] 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 ... [1s/1s] OK
- checking Rd files ... [0s/0s] 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 contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... [0s/0s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking examples ... [0s/0s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [2s/2s] ERROR
Running ‘testthat.R’ [1s/1s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> test_check("competitiontoolbox")
Loading required package: competitiontoolbox
Loading required package: antitrust
Loading required package: trade
Attaching package: 'trade'
The following object is masked from 'package:antitrust':
sim
Loading required package: shiny
Loading required package: rhandsontable
Attaching package: 'competitiontoolbox'
The following object is masked from 'package:trade':
trade_shiny
The following object is masked from 'package:antitrust':
antitrust_shiny
Saving _problems/test-shiny-model-registry-79.R
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 88 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-shiny-model-registry.R:79:5'): every registered model runs and tab computations are callable ──
Error in `optim(parmStart, minDemand, method = "L-BFGS-B", lower = lowerB, upper = upperB)`: L-BFGS-B needs finite values of 'fn'
Backtrace:
▆
1. ├─base::suppressWarnings(...) at test-shiny-model-registry.R:79:5
2. │ └─base::withCallingHandlers(...)
3. └─global sim_fun(spec$supply, spec$demand_label, input_data, -1, spec$page)
4. └─global run_model(spec, indata, list(mktElast = mktElast))
5. └─global run_horizontal_model(fn, spec, data, mktElast, known_elast)
6. ├─base::do.call(fn, args)
7. └─antitrust (local) `<fn>`(...)
8. ├─antitrust::calcSlopes(result)
9. └─antitrust::calcSlopes(result)
10. └─antitrust (local) .local(object, ...)
11. └─stats::optim(...)
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 88 ]
Error:
! Test failures.
Execution halted
- checking PDF version of manual ... [2s/2s] OK
- DONE
Status: 1 ERROR