无法从终端R启动R帮助文档

时间:2015-07-08 15:35:56

标签: linux r

我的工作平台是:

Distributor ID: Debian
Description:    Debian GNU/Linux 8.1 (jessie)
Release:    8.1
Codename:   jessie

我已经安装了vim-r-plugin来编辑和运行R程序。一切看起来都不错,但启动了一些R帮助文档,例如:

enter image description here

有人知道原因是什么以及如何解决它?

1 个答案:

答案 0 :(得分:3)

If you type getOption("help_type") it will be either "html" or "text". If it is "html" then it tries to open help in the browser. Here the browser it is trying to open doesn't seem to exist. You can change the browser by typing the command options(browser = "firefox"). If you're using Debian Jessie you might need to use options(browser = "iceweasel").

If you instead want to get help to display in the terminal, type options(help_type = "text").

To make your desired options happen automatically every time you start R, put your desired options() settings in your ~/.Rprofile.