Using Sweave, for example, one can write essentially write LaTeX documents that have chunks of R code embedded in them that are evaluated and embedded back into the document. Knitr essentially does the same.
Assuming we have valid language syntaxes for both (there is a SWeave syntax), how can we enable sending code chunks to an R session running in sublimeREPL? This is helpful so that one could debug the R code written in the document.
An example SWeave section might look like:
- Code: Select all
This is some LaTeX I'm writing about something interesting. Below is a plot of something even more interesting
\item This is actually;
\item rather mundane
R code lives between the "<<>>=" and "@" blocks. Currently when I highlight the code and select:
`Tools > SumblieREPL > Eval in REPL > Selection`
nothing is sent to the R REPL I have fired up.
Is there a way to get this to work?