Skip to content

devtools:::email fails under RStudio on macosx #433

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jefferis opened this issue Mar 11, 2014 · 5 comments
Closed

devtools:::email fails under RStudio on macosx #433

jefferis opened this issue Mar 11, 2014 · 5 comments

Comments

@jefferis
Copy link

The email() function called by release() fails silently under Rstudio on mac. This happens because

# regular R mac gui
> options('browser')
$browser
[1] "/usr/bin/open"
# rstudio
> options('browser')
$browser
function (url) 
{
    .Call("rs_browseURL", url)
}
<environment: 0x1020ca470>

I guess one possible fix would be to temporarily override the browser option inside email() with "/usr/bin/open" on mac.

https://github.com/hadley/devtools/blob/21cc4a6689bce3531daa3e295cf676a035af769c/R/release.r#L148-L159

@hadley
Copy link
Member

hadley commented Mar 11, 2014

@jjallaire is there a way to find out the default value of getOption("browser") before it's overridden by Rstudio?

@jjallaire
Copy link
Collaborator

No there isn't currently a way to do this. You could just take the default
for each platform as observed in a vanilla version of R (it's highly
doubtful that users are overriding "browser" and even if they are email
from devtools is such as specialized case that using the base R default
isn't likely to be objectionable)

On Tue, Mar 11, 2014 at 10:43 AM, Hadley Wickham
notifications@github.comwrote:

@jjallaire https://github.com/jjallaire is there a way to find out the
default value of getOption("browser") before it's overridden by Rstudio?

Reply to this email directly or view it on GitHubhttps://github.com//issues/433#issuecomment-37303019
.

@hadley
Copy link
Member

hadley commented Mar 14, 2014

@jjallaire not high priority, but could rstudio learn to pass through unrecognised url schemes?

@krlmlr
Copy link
Member

krlmlr commented Mar 17, 2014

Same on Ubuntu.

@hadley
Copy link
Member

hadley commented Mar 17, 2014

And it looks like it's NULL on windows

@hadley hadley closed this as completed in a45e87c Mar 18, 2014
@lock lock bot locked and limited conversation to collaborators Sep 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants