Hi, perhaps the answer to my question is obvious and I didn?t find it because I?m new to R ... The problem is as follows: I read some data from file, do some commands which are well processed and finally make some graphics. OK Then I put these commands together in a *.R file which I can process ... Among these i. e. is sum_input = summary(mydatatable) sum_input ..... plot(mydatatable) What happens: If in the script the command above comes before a plot command the plot is shown in a graphics window but not the output of the command in the console window. I therefore thought that I should define an active window and changes the order ... sum_input = summary(mydatatable) plot(mydatatable) bringToTop(-1) sum_input I see the plot, but not the output of sum_input Of course, if I input the command from the keyboard, I get an output. What happens? Many thanks in advance for any help. Wolfgang ------------------------------------------------------------------- Dr. Wolfgang Grond Kompetenzzentrum f=FCr den Email: grond at kegom.de Elektronischen Gesch=E4ftsverkehr http://www.kegom.de in Ober- und Mittelfranken - KEGOM Industrie- und Handelskammer Phone: +49 921 886-519 f=FCr Oberfranken Bayreuth Fax: +49 921 886-122 Bereich Innovation.Umwelt Email: grond at bayreuth.ihk.de Bahnhofstrasse 23-27 http://www.bayreuth.ihk.de D-95444 Bayreuth, Germany -------------------------------------------------------------------- ______________________________________________________________________________ Wie ware das: mehrere E-Mail Adressen - aber nur ein Postfach ? -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Wolfgang Grond <wolfgang.grond at web.de> writes:> sum_input = summary(mydatatable)* Check the syntax! "_" is an alias for the assignment operator "<-". (That's because an adm3a terminal back in the stone age used to print that character as a left-arrow.) It's being deprecated in 1.6.0, but it will take a while before you can use it in variable names. -- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
If you are using source, you may set echo = TRUE and print.eval TRUE. see ?source Jun On Wed, 2 Oct 2002, Wolfgang Grond wrote:> Hi, > > perhaps the answer to my question is obvious and I didn´t find it because I´m new to R ... > > The problem is as follows: > I read some data from file, do some commands which are well processed and finally make some graphics. OK > Then I put these commands together in a *.R file which I can process ... > > Among these i. e. is > > sum_input = summary(mydatatable) > sum_input > ..... > plot(mydatatable) > > What happens: > If in the script the command above comes before a plot command the plot is shown in a graphics window but not the output of the command in the console window. I therefore thought that I should define an active window and changes the order ... > > sum_input = summary(mydatatable) > plot(mydatatable) > bringToTop(-1) > sum_input > > I see the plot, but not the output of sum_input > > Of course, if I input the command from the keyboard, I get an output. > > What happens? > > Many thanks in advance for any help. > > Wolfgang-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Reasonably Related Threads
- Missing Values
- Want to draw 3D cylinder objects
- mc.cores and computer settings on osx and linux
- Detecting answer supervison from an AGI app
- after package reorganization: version 1.6 of package "distr" available; new packages "distrEx", "distrSim", "distrTEst", "RandVar"