[R] SuSe does not like more.

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Tue Oct 13 16:12:17 CEST 1998


alexander volovics <awol at STAT.UNIMAAS.NL> writes:

> Thank you for the reply.
> You were right of course, SuSe sets PAGER=less.
> So LESS=-XR R works perfectly.
> 
> So I take it that R uses 'more' to pipe output to the screen?

More precisely: $RHOME/cmd/pager which in turn looks at $PAGER:

$ more cmd/pager 
#!/bin/sh
pager=${PAGER-"more -s"}
if [ "$1" != "" ]
then exec $pager < $1
else exec $pager
fi
# For the curious: "pager $1" doesn't work in batch, because "more" will
# eat the rest of stdin. The no-argument version is intended for use 
# at the end of a pipeline.


[If you want less -XE as default for R - e.g. to be able to scroll
back - you might add 

PAGER="less -XE" 

to the bin/R startup script]

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list