DoseResponse / drc

Fitting dose-response models in R
https://doseresponse.github.io/drc/
21 stars 16 forks source link

option 'otrace' in 'drmc' documented incorrectly #29

Open NicWir opened 1 year ago

NicWir commented 1 year ago

I noticed that the value of argument otrace in drc::drmc() is assigned to silentVal in drc:::drmOpt() which further defines silent in try( stats::optim() ).

The documentation for drc::drmc() states: "otrace logical. If TRUE the output from optim is displayed." which is misleading. If TRUE, then try( optim(startVec, ....), silent = TRUE) will be executed and thus the error message (if any) will be suppressed. The argument as little to do with "the output from optim"