Skip to content
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

utils::browseURL in exercise() does nothing (at least on Ubuntu) #12

Closed
richardjtelford opened this issue Jan 6, 2021 · 1 comment · Fixed by #13
Closed

utils::browseURL in exercise() does nothing (at least on Ubuntu) #12

richardjtelford opened this issue Jan 6, 2021 · 1 comment · Fixed by #13

Comments

@richardjtelford
Copy link
Contributor

At least on Ubuntu, this line in exercise() does nothing.

utils::browseURL(filename)

Consider using rstudioapi::navigateToFile(filename) which will open the file in Rstudio.

To allow for anyone not using Rstudio, it might be worth either using usethis::edit_file directly or copying the last few lines from that function into exercise() which tests if Rstudio is being used and opens the file in an appropriate way.

I can send a pull request if you want, but cannot test on windows machine

@debruine
Copy link
Member

debruine commented Jan 6, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants