On Dec 29, 2007 4:33 PM, LUZhiping <camping9@hotmail.com> wrote:

>
> Hi,
>
> I have a question in running R 2.4.1 in the Mac OS X 10.5 Leopard.
>
> I write all my R code without using any packages in R. When I run it in
> Windows system, it runs smoothly and correctly.
>
> Then I try to run the same code in Mac OS X 10.5 Leopard. I just copy the
> script file on the desktop of the Mac OS X. I find  I can open the file
> directly as a text file.
>
> To run R in Mac OS X, I type "R" in the terminal window of Unix, but I can
> not open the script file as I've done in windows. So I copy all the content
> of my code, and I paste it in the Unix window, but there are always some
> errors, for example, error for the variable in loops.
>
> I can not understand why. Though I read some related help file, it seems
> to me still not quite clear.
>

Hi, LU Zhiping.  You will probably need to tell us a bit more.  What errors
did you receive?  Why could you not open the script file?  Generally, you
will want to run scripts from the command line by doing:

source('~/Desktop/name_of_file.R')

If you do this with your file, what happens?

Sean

	[[alternative HTML version deleted]]

