-
Notifications
You must be signed in to change notification settings - Fork 138
Use R files for background process #783
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
Use R files for background process #783
Conversation
- Moves R process commands from inline text to R scripts - Use environment variables to pass values to the scripts
|
Should we also make it for the R help server at vscode-R/src/helpViewer/helpProvider.ts Lines 42 to 45 in 4d6a663
|
I wasn't sure at what point/complexity we should create files. Do we think all background processes? |
|
I think we should put a script if the command line has multiple expressions or needs quoting. |
|
Also, do we really need the
|
I was thinking the background folder, because I wanted to distinguish it from the session-watcher related files. Would it make more sense to have the following?
|
Makes good sense. |
- change require to requireNamespace - Move session related R files to R/session/
|
I've moved the session files to |
renkun-ken
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything works well.
LGTM
* Move R-related session files to `R/session` * Move `getAliases.R` to `R/help` * New file `helpServer.R` in `R/help` * New file `knit.R` in `R/rmarkdown` * New file `preview.R` in `R/rmarkdown`
Resolves #781
Why?
In general, easier to maintain:
Changes
R/sessiongetAliases.RtoR/helphelpServer.RinR/helpknit.RinR/rmarkdownpreview.RinR/rmarkdown