大多数时候我通过远程服务器上的终端处理项目。最近我升级了我的Linux(Debian jessie)平台,然后我无法看到R帮助文件:
$ssh -X abcd
$R
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> ?table
sh: vimrpager: command not found
>
有人知道原因并提出一些建议吗?顺便说一下,我在.Rprofile上有这些设置:
# See R documentation on Vim buffer even if asking for help in R Console:
if(Sys.getenv("VIM_PANE") != "")
options(help_type = "text", pager = vim.pager)
}
}
options(help_type = "text",
"width"=200)
#clean workspace everytime when quit R
.last<-function() rm(list=ls())
答案 0 :(得分:1)
我们正在&#34;泛型&#34;我们在## Default browser
R_BROWSER=${R_BROWSER-'xdg-open'}
## Default editor
EDITOR=${EDITOR-${VISUAL-vi}}
## Default pager
PAGER=${PAGER-'/usr/bin/pager'}
## Default PDF viewer
R_PDFVIEWER=${R_PDFVIEWER-'/usr/bin/xdg-open'}
中使用这些设置查看的内容:
PAGER
由于此处可能使用了/usr/bin/pager
,因此您可以检查 apt-cache search pager
的当前设置(可能是符号链接)失败并解决的原因。 Task
显示了许多替代方案(大量误报)。