[R] How to export the examples in help(something) to a file?

Liaw, Andy andy_liaw at merck.com
Thu Feb 4 21:18:18 CET 2010


From: Peng Yu
> 
> On Wed, Feb 3, 2010 at 10:01 AM, Peng Yu <pengyu.ut at gmail.com> wrote:
> > Some examples in the help page are too long to be copied 
> from screen.
> > Could somebody let me know some easy way on how to extract 
> the example
> > to a file so that I can play with them?
> 
> I forget to mention. I use a terminal version of R.

One possibility is to make a copy of example() to something else, and
remove the last line where it source() the .Rex file, and modify it to
suit your need.

Andy
Notice:  This e-mail message, together with any attachme...{{dropped:10}}



More information about the R-help mailing list