[R] Print and supressing printing in function

From: Jonathan Greenberg <jgreenberg_at_arc.nasa.gov>
Date: Sun 24 Sep 2006 - 18:31:36 GMT

Another newbie question for you all:

In a function, say I have:

countme <- function() {
for(i in 1:10) {

How do I get R to print "i" as it runs (e.g. By calling "countme") -- right now it seems to supress most output. On a related note, my program uses remove.vars, which always prints its output -- how to I *supress* that output?



Jonathan A. Greenberg, PhD
NRC Research Associate
NASA Ames Research Center
MS 242-4
Moffett Field, CA 94035-1000
Office: 650-604-5896
Cell: 415-794-5043
AIM: jgrn307
MSN: jgrn307@hotmail.com

R-help@stat.math.ethz.ch mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Mon Sep 25 04:34:42 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sun 24 Sep 2006 - 19:30:05 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.