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"
I noticed that the value of argument
otrace
indrc::drmc()
is assigned tosilentVal
indrc:::drmOpt()
which further definessilent
intry( stats::optim() )
.The documentation for
drc::drmc()
states: "otrace
logical. If TRUE the output from optim is displayed." which is misleading. IfTRUE
, thentry( 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"