Peng Yu
2009-Aug-06 18:59 UTC
[R] How to show help in the same mode as where the commands is input?
Hi, In R command line, when I type "help(something)", it will always show the help in the different mode such that I don't see command lines anymore but just the help document. If I quit from the help mode, I will only see the command lines by not the help document. I would like the help document and command lines be show in the same mode. I'm wondering how to do so. Regards, Peng
Romain Francois
2009-Aug-06 19:25 UTC
[R] How to show help in the same mode as where the commands is input?
Hi, You can define your own pager: Something like this might do what you want: dump.pager <- function( files, ...){ cat( readLines( files ), sep = "\n" ) } options( pager = dump.pager ) Romain On 08/06/2009 08:59 PM, Peng Yu wrote:> Hi, > > In R command line, when I type "help(something)", it will always show > the help in the different mode such that I don't see command lines > anymore but just the help document. If I quit from the help mode, I > will only see the command lines by not the help document. > > I would like the help document and command lines be show in the same > mode. I'm wondering how to do so. > > Regards, > Peng >-- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/vzip : Code Snippet : List of CRAN packages |- http://tr.im/vsK1 : R parser package on CRAN `- http://tr.im/vshK : Transfer files through Rserve