Scrolling in Help System Doesn't Work
On Mon, 2011-08-08 at 12:53 -0400, Tom Callaway wrote:
On 08/08/2011 12:50 PM, peter dalgaard wrote:
On Aug 8, 2011, at 17:13 , Tom Callaway wrote:
On 08/05/2011 11:56 PM, Michael Smith wrote:
On my old F13 box, R 2.13.0 still uses "less" by default. Since "less" is often regarded as a more sophisticated version of "more", I wonder why this change has been made.
The change is not Fedora specific, we use the default Environ from upstream.
But that is generated by configure, which does
configure:for ac_prog in ${PAGER} less more page pg
so if it ends up with "more" as the default, I'd say that the test for "less" failed in the build environment. Either that or the shell itself sets PAGER to "more".
(Conversely, you can always override it by "export PAGER=less" before starting R, or Sys.setenv(PAGER="less"), etc.)
Aha! Okay, so that's easy enough to fix. Not really worthy of pushing an update for, but I'll update the spec file in git so that on the next update, less will be present in the buildroot.
On Fedora 14
$ grep -i pager /usr/lib64/R/etc/Renviron
## Default pager
PAGER=${PAGER-'/usr/bin/less'}
On Fedora 15
$ grep -i pager /usr/lib64/R/etc/Renviron
## Default pager
PAGER=${PAGER-'/bin/more'}
So the change happened in between.
Pierre