Skip to content

The output of script is hidden in console

6 messages · vtvdung, Tom Fletcher, Bert Gunter +2 more

#
There are probably numerous ways, but one is to add print() to the
functions that you wish to display in the console. 

For example, in your source file, 

Instead of 
summary(x) 

try

print(summary(x))

This should do the trick. 

Tom Fletcher



-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org]
On Behalf Of vtvdung
Sent: Tuesday, January 05, 2010 9:42 AM
To: r-help at r-project.org
Subject: [R] The output of script is hidden in console


Hi everyone,
I execute a script with
source(filename)
The script has effect but i don't see the output on console screen.Why?
I'm a newbie. Thanks :handshake:
#
R FAQ 7.16. 

R Newbies should read this first (+the FAQ for Windows, if appropriate)
_before_ posting questions to the list.

Bert Gunter
Genentech Nonclinical Biostatistics
 
 
-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On
Behalf Of Tom Fletcher
Sent: Tuesday, January 05, 2010 9:15 AM
To: vtvdung; r-help at r-project.org
Subject: Re: [R] The output of script is hidden in console

There are probably numerous ways, but one is to add print() to the
functions that you wish to display in the console. 

For example, in your source file, 

Instead of 
summary(x) 

try

print(summary(x))

This should do the trick. 

Tom Fletcher



-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org]
On Behalf Of vtvdung
Sent: Tuesday, January 05, 2010 9:42 AM
To: r-help at r-project.org
Subject: [R] The output of script is hidden in console


Hi everyone,
I execute a script with
source(filename)
The script has effect but i don't see the output on console screen.Why?
I'm a newbie. Thanks :handshake:
#
If you are using windows, In windows console.

Rgui.exe filename.R <-------------The command does not work at all.

You have open Rgui.exe first, retrieve filename.R then run the script.

Noli
On 1/5/10, vtvdung <vtvdung.inf47 at yahoo.com> wrote:
#
On 06.01.2010 02:56, Noli Sicad wrote:
I fear this does not answer the question.
You have not printed the ouput. Either do that explicitly or via the 
argument print.eval=TRUE in source() which should have been revealed by 
reading ?source.

Best wishes,
Uwe Ligges
#
What output are you expecting? Is a graph? If it is, look for
Rplots.pdf in your data directory. Noli
On 1/6/10, Uwe Ligges <ligges at statistik.tu-dortmund.de> wrote: