[R] output from script

Jun Yan jyan at stat.wisc.edu
Wed Oct 2 19:59:51 CEST 2002


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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list