I am used to using R under unix. I have a problem with R under Windows-2000: Suppose I have a is a plain text file code.r full of R code that I want to source into R. My problem is that Windows invisibly tacks ".txt" onto the end of the filename (the name looks like code.r but it is really code.r.txt). How to get windows to both allow me to call it code.r (for real! Not code.r.txt) and to edit it as a text file by default (say with Notepad)? Thanks for any help. Bill Simpson -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> Suppose I have a is a plain text file code.r full of R code that I want to > source into R. My problem is that Windows invisibly tacks ".txt" onto the > end of the filename (the name looks like code.r but it is really > code.r.txt). How to get windows to both allow me to call it code.r (for > real! Not code.r.txt) and to edit it as a text file by default (say with > Notepad)?I believe under the 'save as' menu, if you select file type to be 'all files', Windows will not try to outsmart the user w/ the selection of file extensions. -J -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Dear Bill, At 03:43 PM 11/20/2002 -0500, Simpson, William wrote:>I am used to using R under unix. I have a problem with R under Windows-2000: >Suppose I have a is a plain text file code.r full of R code that I want to >source into R. My problem is that Windows invisibly tacks ".txt" onto the >end of the filename (the name looks like code.r but it is really >code.r.txt). How to get windows to both allow me to call it code.r (for >real! Not code.r.txt) and to edit it as a text file by default (say with >Notepad)?When saving the file under Notepad, change the file type to "All files" so that Notepad doesn't screw with the extension. Alternatively, you could use a better editor, such as WinEdt or Emacs (there's information on the R website at <http://cran.r-project.org/other-software.html>). Regards, John ----------------------------------------------------- John Fox Department of Sociology McMaster University Hamilton, Ontario, Canada L8S 4M4 email: jfox at mcmaster.ca phone: 905-525-9140x23604 web: www.socsci.mcmaster.ca/jfox ----------------------------------------------------- -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Thanks for all the helpful replies both to the list and emailed directly to me. Several people blamed Notepad (I am looking at alternative suggested editors) for tacking ".txt" onto filenames. However I experience this problem with every other sort of file: .pdf .doc .ps .rtf I have turned off the hidden names stuff as instructed in the file browser. Doesn't seem to change anything. "file.pdf" is still shown as "file". I have to guess from the icon that the real filename is "file" + ".pdf". Or if it is a big W[ord] icon I have to guess that the filename is "file" + ".doc" (though sometimes maybe it's really + ".rtf" or ".txt") Maybe from now on the problem won't happen--just previously saved files still have the hidden extensions. In general it seems that I am not allowed to use extensions because windows reserves the right to do that itself (something like the Mac's resource fork). Else I need to play guessing games about filenames. I know this is not R-specific but I am getting helpful R-specific advice (e.g. WinEdt and JEdit R stuff). Thanks again for all the help. Looks like I may have to dual boot linux because there is no solution to the windows file extension fiddling. Bill -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._