[R] calling an editor on MAC and Linux
Niels Waller
niels.waller at vanderbilt.edu
Fri Jun 14 03:05:27 CEST 2002
I have written an R function that writes output to an external file using
the sink function. I assume that `sink' is not operating system dependent.
At the end of the function I have additional code that opens the newly
created file using notepad on a Windows system. Obviously, this part of the
code will not work on a Mac or Linux box. Since I do not have a machine
with Linux or the Mac OS available I have no idea what to call the default
editors. Could somebody provide a suggestion? Thanks in advance.
win3 <- function(...) {
system(...)
}
[a zillion lines of code here ]
notepad.file <- paste("notepad", outFile, sep = " ")
win3(notepad.file)
0=================================================0
Dr. Niels G. Waller
Quantitative Methods
Department of Psychology and Human Development
Box 512 Peabody College
Vanderbilt University
Nashville TN 37203
email: niels.waller at vanderbilt.edu
fax: 615 343-9494
QME home page: http://www.vanderbilt.edu/quantmetheval
http://peabody.vanderbilt.edu/depts/psych_and_hd/faculty/wallern/
0=================================================0
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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