You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Ah, good idea! I started developing that after lockdown last year, so have really only been testing it on my Mac at home.
The book and class are so focussed on using R with RStudio that I don’t think it makes much sense to build in workarounds. People who use something different generally know what works for their setup.
Send a pull request of you can be bothered, or I’ll get to it eventually here.
On 6 Jan 2021, at 20:05, Richard J Telford ***@***.***> wrote:
At least on Ubuntu, this line in exercise() does nothing.
https://github.com/PsyTeachR/msc-data-skills/blob/cf948ca23e6a23486eb619649342f8cc8ab7f591/R/exercise.R#L24
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
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
At least on Ubuntu, this line in
exercise()
does nothing.msc-data-skills/R/exercise.R
Line 24 in cf948ca
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 intoexercise()
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
The text was updated successfully, but these errors were encountered: