Skip to content
Prev 361472 / 398502 Next

system() command not working

Hi John:

When El Capitan first came out there was a discussion in the  R-SIg-Mac  list about environmental variables not being passed down to applications  (not just R abut in general).  I believe a work around was suggested, but I would search the archives for that.

So what is happening, when you run from the command line, the variables   MRT_DATA_DIR and MRTDATADIR which are defined somewhere in your environment are found in the terminal, but when the same command is run from the application they are not being found.  I would search the R-SIg-Mac archive or post to that list, because i can?t remember what the work around was for it.

HTH,

-Roy
**********************
"The contents of this message do not reflect any position of the U.S. Government or NOAA."
**********************
Roy Mendelssohn
Supervisory Operations Research Analyst
NOAA/NMFS
Environmental Research Division
Southwest Fisheries Science Center
***Note new address and phone***
110 Shaffer Road
Santa Cruz, CA 95060
Phone: (831)-420-3666
Fax: (831) 420-3980
e-mail: Roy.Mendelssohn at noaa.gov www: http://www.pfeg.noaa.gov/

"Old age and treachery will overcome youth and skill."
"From those who have been given much, much will be expected" 
"the arc of the moral universe is long, but it bends toward justice" -MLK Jr.