[R] Running rscript in windows

Duncan Murdoch murdoch at stats.uwo.ca
Thu Feb 11 12:14:42 CET 2010


vikrant wrote:
> Thanks a lot, really. dir() option showd my desktop files and "test.R" was
> shown as "test.R.txt"
> when I run source("test.R.txt") it worked.
>
> Just for your information,
> I changed the directory using Menu options File-> change dir.
> I verified the same using getwd() command in R. '
>
>
>   
This is due to the bizarre default in Windows of suppressing file 
extensions.  Turn that off, so you can see what files are really named, 
and you will not be confused by secret renamings like this one.

Duncan Muroch



More information about the R-help mailing list