Knitr + pandoc Workflow for Executing Code and Insert Output (R Markdown) #322
Replies: 3 comments
-
Note: run mkpipe .Rpipe;
Rscript -e "while (T) {tryCatch(eval(parse(text=readLines('stdin'))), error = function (e) {print(e); sys.calls()})}" < .Rpipe & Makes it possible to use variables across runs bu reusing the same R session with a FIFO. |
Beta Was this translation helpful? Give feedback.
-
Nice! 🙂 I'll reply just shortly now. I need to look into this at a better time. Can you elaborate a bit about what is knit? I'm not familiar with R programming language, either, although I've heard the name. Do you have some practical example use case on which you use this? 🙂 I'm just trying to familiarize myself with this workflow and its possibilities. 🙂 |
Beta Was this translation helpful? Give feedback.
-
I actually prefer Python/Matlab over R. But for running some simple code in markdown, RMarkdown seems to be competitive. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Nice workflow, at least for me
> Code Here <
An competitive alternative for running codes before current extensions (Jupyter/Execute Code) become more mature.
This workflow has 3 parts: one to knit the markdown, one to compile into PDF, and another for opening the PDF.
You can find recommended settings and descriptions for custom variables in that Gist.
Features
```language +x{args}
because Obsidian does not highlight R Markdown syntax```{language args}
Possible improvements

).obsidian/app.json
Beta Was this translation helpful? Give feedback.
All reactions