Hi All, I'm trying to run an ADMB function on R for Mac and need to find a substitute for the Windows command shell(). I tried system() but I get the following message:> system(ADMBFile)/bin/sh: /Users/nicolas/Desktop/SPE/LBSPR_ADMB/L_AFun.exe: cannot execute binary file Any hints please? Cheers, N This e-mail and any accompanying documents contain confidential information intended for a specific individual or company. This information is private and protected by law. If you are not the intended recipient, you are hereby notified that any disclosure, copying or distribution, or the taking of any action based on the contents of this information, is strictly prohibited. You are also requested to advise us immediately if you receive information not addressed to you.
On Nov 4, 2013, at 9:52 AM, Nicolas Gutierrez wrote:> Hi All, > > I'm trying to run an ADMB function on R for Mac and need to find a substitute for the Windows command shell(). I tried system() but I get the following message: > >> system(ADMBFile) > /bin/sh: /Users/nicolas/Desktop/SPE/LBSPR_ADMB/L_AFun.exe: cannot execute binary file > > Any hints please? >Generally one would enclose system commands in quotes. Is ADMBFile a character object? If so what is its value? -- David Winsemius Alameda, CA, USA
On Nov 4, 2013, at 11:52 AM, Nicolas Gutierrez <nicolas.gutierrez at msc.org> wrote:> Hi All, > > I'm trying to run an ADMB function on R for Mac and need to find a substitute for the Windows command shell(). I tried system() but I get the following message: > >> system(ADMBFile) > /bin/sh: /Users/nicolas/Desktop/SPE/LBSPR_ADMB/L_AFun.exe: cannot execute binary file > > Any hints please? > > Cheers, > > NWhy would you expect a Windows executable file (L_AFun.exe) to run on a non-Windows operating system? This is not related to the system call, but that you are trying to run the wrong executable. ADMB is presumably associated with AD Model Builder and you may be better off posting to the r-sig-mixed-models list: https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models Regards, Marc Schwartz