RStudio在Web浏览器中打开文档

时间:2015-03-16 16:03:05

标签: r rstudio

当我在RStudio中输入帮助框的函数名称时,我会在Web浏览器而不是RStudio-help窗口中打开答案。输入?function例如?which时会发生同样的情况。这样做的同时我也在控制台中收到以下错误:

> ?which
Error in (function ()  : attempt to apply non-function
Error in (function ()  : attempt to apply non-function
Error in (function ()  : attempt to apply non-function

将R升级到版本3.1.3并且我使用的是Ubuntu 14.04。

有谁知道如何解决这个问题 - 如何让RStudio在RStudio窗口中打开文档,而不是在Web浏览器中?

2 个答案:

答案 0 :(得分:12)

RStudio需要升级到0.98.1103或更新版本。 答案取自here

答案 1 :(得分:0)

在R中

,这是有效的

options(help_type = "text")

在R Studio中,您可以打开文件RStudio\R\Options.R并注释掉这部分(在我当前的版本16-20行中):

# custom browseURL implementation
options(browser = function(url)
{
    .Call("rs_browseURL", url) ;
})