| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
Thank you for switching it to USERPROFILE!
Sorry, something went wrong.
|
Alternatively, one could make use of the env variable R_PROFILE_USER that points to a vscode generated .Rprofile. For example, vscode-R could generate ~/.vscode-R/.Rprofile and set R_PROFILE_USER to it in the integrated terminal. # ~/.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 .Rprofile. |
Sorry, something went wrong.
|
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 R: Create R Terminal command. 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.
|
@renkun-ken This PR is now conflicted with master. Would you be able to resolve that and then I'll merge it? Thanks! |
Sorry, something went wrong.
|
@andycraig Conflicts resolved. Thanks! |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Closes #196.
Related to #177, #179.
In this PR: