Skip to content
Prev 205438 / 398506 Next

The output of script is hidden in console

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: