Re: [R-SIG-Mac] Permanently fix R to open Help page in html

2017-07-11 Thread Marc Schwartz
Hi Christofer, Here is the content of my fairly simple .Rprofile: options(help_type = "html") local({r <- getOption("repos") r["CRAN"] <- "http://cran.us.r-project.org; options(repos=r) }) options(papersize = "letter") options(show.signif.stars = FALSE) options(device = "quartz")

Re: [R-SIG-Mac] Permanently fix R to open Help page in html

2017-07-11 Thread Christofer Bogaso
Hi Marc, When I enter 'open -a Textedit ~/.Rprofile' in Terminal .RProfie file opens. Below is the content of that file : .First <- function() { options("repos" = c(CRAN = "http://cran.r-project.org/;)) options(help_type = "html") } An the R window looks like below : R version 3.4.0

Re: [R-SIG-Mac] Permanently fix R to open Help page in html

2017-07-11 Thread Marc Schwartz
Christofer, The thing is that you really don't need to do that (use .First), which makes this situation curious and why it would be helpful to see the full content of your .Rprofile file, to be sure that there is not a conflict in content or structure someplace. An extra set of eyes might be

Re: [R-SIG-Mac] Permanently fix R to open Help page in html

2017-07-11 Thread Christofer Bogaso
Hi, I just put options(help_type = "html") inside .First <- function() {} and now it works. Help page is now opening in Browser. Thanks all for your time and help. Regards, On Tue, Jul 11, 2017 at 8:21 PM, Marc Schwartz wrote: > Christofer, > > Can you post your

Re: [R-SIG-Mac] Permanently fix R to open Help page in html

2017-07-11 Thread Marc Schwartz
Christofer, Can you post your .Rprofile file someplace online (e.g. Dropbox) so that we can take a look at it? Marc > On Jul 11, 2017, at 9:48 AM, Christofer Bogaso > wrote: > > Hi Ben, > > I work with R from Terminal only. > > If I explicitly set '

Re: [R-SIG-Mac] Permanently fix R to open Help page in html

2017-07-11 Thread Christofer Bogaso
Hi Ben, I work with R from Terminal only. If I explicitly set ' options(help_type = 'html')' after opening R in terminal, it works perfectly. Means, help page opens in Browser. However I do not want to have this code ' options(help_type = 'html')' every time I open R. So I want R to set this

Re: [R-SIG-Mac] Permanently fix R to open Help page in html

2017-07-11 Thread Ben Tupper
Hi, I'm curious about what happens if you start a plain R session at the command line (not R.app) and set the option within the session. Something like the following that open help in my browser. $ R --vanilla R version 3.3.1 (2016-06-21) -- "Bug in Your Hair" Copyright (C) 2016 The R