This posting is for the help-file record in that the problem has already been resolved via a misplaced discussion in the R-bug forum (Bug 14894). I place it here so make it easier for others to find. The problem involved an error in calling "Rscript" from Matlab on Mac OS X 10.6 "Snow Leopard". The "stats" library could not be found. The solution was to set the symbolic link: sudo ln -s /Library/Frameworks/R.framework/Resources/R /usr/local/bin/R See: cran.r-project.org/bin/macosx/RMacOSX-FAQ.html#Command-line-version-of-R Cheers, -Kent -- Kent Conover, Ph.D. Research Associate Professor Shizgal Laboratory/Concordia Brain Imaging Group Center for Studies in Behavioral Neurobiology Psychology Department, Concordia University 7141 Sherbrooke Street West, SP-153.19 Montreal, Quebec, Canada, H4B 1R6 514 848-2424 x8653 *“The greatest value of a picture is that is forces us to notice what we never expected to see”* -John Tukey [[alternative HTML version deleted]]