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

2017-07-12 Thread MacQueen, Don
The first thing I would do is go to the “Format” menu in Textedit, and make sure “Make Plain Text” is selected. Textedit’s default format is RTF, which is not what you want. (Apologies if someone else already suggested this and I missed it) -Don -- Don MacQueen Lawrence Livermore National La

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") o

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 (2

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 h

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 .Rprofile file someplace onlin

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 ' options(help_type = 'html')' after open

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 opt

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 Foundat

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

2017-07-11 Thread Christofer Bogaso
I am not getting error. However help page is not opening in html. On Tue, Jul 11, 2017 at 5:16 PM, Marc Schwartz wrote: > >> On Jul 10, 2017, at 10:33 PM, Christofer Bogaso >> wrote: >> >> Performed steps according to Marc's suggestions : >> >> But not help page is not openning in Browser. > >

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

2017-07-11 Thread Marc Schwartz
> On Jul 10, 2017, at 10:33 PM, Christofer Bogaso > wrote: > > Performed steps according to Marc's suggestions : > > But not help page is not openning in Browser. Are you getting the same error as before? Do the single quotes still look like smart quotes or regular ASCII quotes? Marc >

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

2017-07-10 Thread Christofer Bogaso
Performed steps according to Marc's suggestions : But not help page is not openning in Browser. On Tue, Jul 11, 2017 at 7:28 AM, Marc Schwartz wrote: > >> On Jul 10, 2017, at 5:19 PM, Duncan Murdoch wrote: >> >> On 10/07/2017 5:02 PM, Christofer Bogaso wrote: >>> Hi, >>> >>> I wanted R to open

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

2017-07-10 Thread Marc Schwartz
> On Jul 10, 2017, at 5:19 PM, Duncan Murdoch wrote: > > On 10/07/2017 5:02 PM, Christofer Bogaso wrote: >> Hi, >> >> I wanted R to open any Help page in html permanently. >> >> So 1st I created .Rprofile file with below code in terminal: >> >> touch ~/.Rprofile >> >> open -a Textedit ~/.Rpr

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

2017-07-10 Thread Duncan Murdoch
On 10/07/2017 5:02 PM, Christofer Bogaso wrote: Hi, I wanted R to open any Help page in html permanently. So 1st I created .Rprofile file with below code in terminal: touch ~/.Rprofile open -a Textedit ~/.Rprofile And then in the .Rprofile file, I wrote below code : options(help_type = ‘ht

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

2017-07-10 Thread Christofer Bogaso
Hi, I wanted R to open any Help page in html permanently. So 1st I created .Rprofile file with below code in terminal: touch ~/.Rprofile open -a Textedit ~/.Rprofile And then in the .Rprofile file, I wrote below code : options(help_type = ‘html’) However after that when I start R (from Term