[R] How do I save a file as .R ?
Duncan Murdoch
dmurdoch at pair.com
Fri Nov 1 13:00:48 CET 2002
Any text editor should be able to do this. If you are using Windows,
Notepad will work.
There is one problem in the default setup for Windows: Notepad (and
many other editors) will add '.txt' on to the filename if you ask to
save a text file. There are two ways to fix this:
1. (Recommended) In Explorer, go to Tools | Folder options | View,
and make sure "Hide extensions for known file types" is *not* checked.
Then Explorer will show you the true filenames, and programs like
Notepad won't secretly add '.txt'.
2. Put double quotes around the filename when you specify it, e.g.
"myfile.R" instead of just myfile.R.
Duncan Murdoch
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list