[ADMB Users] Command line options in scientific notation

Arni Magnusson arnima at hafro.is
Tue Dec 1 04:36:17 PST 2009


On Mon, 30 Nov 2009, Trevor A Branch wrote:

> shell(paste("ADMBprog -mcmc", niter, "-mcsave", 100))
>
> [...] R converts niter from 100000 to scientific notation: 1e+05 so the 
> shell call was:
>
> ADMBprog -mcmc 1e+05 -mcsave 100
>
> Which caused the program to crash.

As a program used mainly by scientists, ADMB should understand user 
options passed in scientific notation.

After burrowing into the ADMB source code, I have written an improved 
command line parser and submitted to the ADMB Project. The next version of 
ADMB should not have problems with mymodel -mcmc 1e+05.

Thanks for highlighting the importance of this limitation,

Arni



More information about the Users mailing list