I am trying to read a source program into a mac pro laptop, which uses Snow Leopard. R is unable to find the file containing my source program. I'm using the function source(" file name"). I need some examples or detailed instructions. I have no problem reading the file using PC. Bob
Have you set the correct working directory? ?setwd ?getwd HTH Stephan Robert Tsutakawa schrieb:> I am trying to read a source program into a mac pro laptop, which uses > Snow Leopard. R is unable to find the file containing my source > program. I'm using the function source(" file name"). I need some > examples or detailed instructions. I have no problem reading the file > using PC. > Bob > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >
On Jun 1, 2010, at 3:19 PM, Robert Tsutakawa wrote:> I am trying to read a source program into a mac pro laptop, which > uses Snow Leopard. R is unable to find the file containing my > source program. I'm using the function source(" file name"). I > need some examples or detailed instructions. I have no problem > reading the file using PC. > BobJust drag the file from a Finder window to the console to get the full path name. A cross-platform solution would be file.choose() -- David