[R] Display variables when running a script

Erik Iverson iverson at biostat.wisc.edu
Thu Jul 17 20:26:54 CEST 2008

Depending on your motivation here, you may want to search for 'debugging 
in R' or something to that effect to look at the various options 
available.  I like the debug package available on CRAN.  Also see 
?browser and ?trace if you want to debug a function.

naw3 at duke.edu wrote:
> Hi,
> I know this must be a stupid question, and sorry in advance for being such a
> noob. But, is there way to get R to display only certain variables when running
> a script. I know if you want to see the value of a variable when using the
> interface, you just type it in and hit enter, but is there a command that I can
> use in a script file that will show the value at a certain point?
> Thanks,
> -Nina
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list