I have recently been introduced to R for win95 and have been impressed by it. It seems to outperform S-Plus greatly. I have had 2 problems. I am using visual basic to automate an analysis. The vis basic routine waits for the creation of a data file then calls R to start the analysis. I have placed the source() command in the rprofile file so it will be run automatically. Output of the analysis is a graph. I have not been able to get the postscript command to work. The command line that I am using follows postscript(file="c:/rdata/current.ps", paper="letter", landscape=TRUE, family="Helvetica", pointsize=12,bg="white", fg="black") Is the command incorrect or is there a larger problem with postscript()? Will other graphical output formats such as the Windows Metafile be added? I am also trying to use the q("no") command from within the script to quit R. When I do this, R asks if I want to save the image anyway. I need R to close itself after the script has been run. q("no") when entered at the command line works as it should. Any suggestions? Thanks Joel Allen jallen at students.cas.unt.edu =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-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 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
"Joel Allen" <jallen at students.cas.unt.edu> writes:> I have recently been introduced to R for win95 and have been impressed by > it. It seems to outperform S-Plus greatly. I have had 2 problems. I am > using visual basic to automate an analysis. The vis basic routine waits > for the creation of a data file then calls R to start the analysis....> I am also trying to use the q("no") command from within the script to quit > R. When I do this, R asks if I want to save the image anyway. I need R to > close itself after the script has been run. q("no") when entered at the > command line works as it should. Any suggestions?This may be a little far out, but if you get the current version of the gnuwin32 tools from Cygnus, it is possible to compile the *unix* version with only a few modifications. There were some bugs in the PostScript code around the time that Rapril was built, which might be what is bothering you. What you get from the gnuwin32 compile is a straight stdin/out application with all of the Unixy bits nicely emulated but *with no graphics display*, but that actually fits your bill rather nicely. The whole thing is not for the faint at heart, pre-beta versions and patches that must be obtained from obscure places and whatnot. I would not recommend it unless you (or a coworker) are fairly well-versed in the Unix way of doing things. -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-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 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=