[R-SIG-Mac]getting round the absence of system() on R for Mac
Greg Jefferis
jefferis@stanford.edu
Mon, 24 Sep 2001 10:01:48 -0700
Dear All,
I am analysing a set of 200 files describing the 3D structure of neurons.
One of the ways I would like to analyse these 3D data points is to find the
convex hull for each neuron. I have an external compiled C application
which does that - at the moment it reads in a set of data stored in the file
chull.in and outputs the convex hull description to another outfile,
chull.out
I would like to write a routine in R which iterates over my 200 neurons,
replaces chull.in with the points describing the current neuron, runs chull,
read the contents of chull.out into R and update the current neuron object.
I can do everything except call this external program - under unix one would
use system(). Any suggestions?
Many thanks,
Greg.
P.S. I am using R v 1.3.1 on MacOS 9.1
__________________________________________________________________________
Greg Jefferis, Lab Address: Liqun Luo, Herrin 144
Neurosciences PhD Programme & e-mail: jefferis@stanford.edu
Dept Biological Sciences, Lab: (650) 725 5809
Gilbert Biology Building, Fax: (650) 723 0589
371 Serra Mall,
Stanford, CA 94305-5020. Home: (650) 497 1135