[R] How to show help in the same mode as where the commands is input?

Peng Yu pengyu.ut at gmail.com
Tue Aug 11 16:36:12 CEST 2009


Hi,

I have type ctrl-C to get back the R prompt. Is there a way to avoid doing it?

Regards,
Peng

On Thu, Aug 6, 2009 at 2:25 PM, Romain
Francois<romain.francois at dbmail.com> wrote:
> 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
>
>




More information about the R-help mailing list