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.
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