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. ' -- View this message in context: http://n4.nabble.com/Running-rscript-in-windows-tp1475671p1476962.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@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.