[R] alternative for shell() in Mac

David Winsemius dwinsemius at comcast.net
Mon Nov 4 19:49:28 CET 2013


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



More information about the R-help mailing list