2015-03-16 14 views
10

Quando digito il nome della funzione nella casella di aiuto in RStudio, la risposta si apre nel browser Web anziché nella finestra di RStudio-help. Lo stesso accade quando si digita ?function ad esempio ?which. Nel farlo anche io ottenere il seguente errore nella console:RStudio apre la documentazione nel browser web

> ?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 

questo è accaduto dopo l'aggiornamento alla versione 3.1.3 R e io sono su Ubuntu 14.04.

Qualcuno sa come risolvere questo problema - come rendere RStudio aprire la documentazione nella finestra RStudio, non nel browser Web?

risposta

12

RStudio deve essere aggiornato a 0.98.1103 o versione più recente. La risposta è stata presa dal here

0

in R, questo funziona

options(help_type = "text") 

in R Studio, è possibile aprire il file RStudio\R\Options.R e commentate questa parte (nel mio attuale linea di versione 16-20):

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

quello non ha aiutato ... – potockan

+0

né ha funzionato per me –

+0

@Soren H. Welling grazie per downvoting un vecchio risposta – rmuc8