GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||
GeezerVison is showing github.com — Improve session watcher initialization by renkun-ken · Pull Request #184 · REditorSupport/vscode-R Conversation
|
|
Alternatively, one could make use of the env variable # ~/.vscode-R/.Rprofile if (file.exists(".Rprofile")) { source(".Rprofile") } else if (file.exists(normalizePath("~/.Rprofile"))) { source("~/.Rprofile") } if (<init.R has not been execuated>) { source(file.path(Sys.getenv(if (.Platform$OS.type == "windows") "USERPROFILE" else "HOME"), ".vscode-R", "init.R")) } This approach would require zero configuration for R sessions launched by vscode-R. Only if a user wants to use session watcher in external R processes, they would have to edit the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
ccb580e to
8963e39
Compare
There was an error while loading. Please reload this page.
|
Thanks @randy3k for your great suggestion. With this PR, user won't have to do any manual configuration if user only starts R session via Now, only users who want to use R session watcher with self-managed R session will have to do some extra configuration. Let me update the README to reflect all these changes. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@renkun-ken This PR is now conflicted with |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
123df40 to
75a5edd
Compare
|
@andycraig Conflicts resolved. Thanks! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@renkun-ken Great, thanks again! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
More robust session watcher initialization
There was an error while loading. Please reload this page.