|||

Custom build system for compiling rmarkdown files in sublime-text 3

Here is my custom build system for compiling rmarkdown files in sublime-text 3 on Linux.

"cmd": ["R", "-e", "library(knitr);rmarkdown::render(input = '$file',output_file = '$file_base_name.pdf')"],
    "selector": "text.html.markdown",
    "path": "/home/steve/.cabal/bin/:/home/steve/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
}

Obviously you will have to replace the /home/steve parts with your own path which has to include your pandoc installation path, otherwise pandoc will fail when you call it from Sublime Text. Took me a while to figure that out.

Bottom line: now I can write a markdown file in sublime which includes some knitr R chunks, and run it from sublime, without having to switch to rstudio. Very useful.

Up next Intelligence and context A. Most efforts to construct artificial intelligence are focussed on computation: building a brain with the right program and enough computational Custom build system for compiling rmarkdown files in plantuml in sublime-text 3 Here is my custom build system for compiling markdown files including plantuml chunks in sublime-text 3 on Linux. Obviously you will have to replace
Latest posts Making notes on PDFs without computer or paper Publications causal-map Causal Map intro Causal Mapping - an earlier guide The walk to school in Sarajevo Glitches Draft blog post for AEA365 Theory Maker! Inventory & analysis of small conservation grants, C&W Africa - Powell & Mesbach! Lots of charts! Answering the “why” question: piecing together multiple pieces of causal information rbind.fill for 1-dimensional tables in r yED graph editor Examples of trivial graph format Using attr labels for ggplot An evaluation puzzle: “Talent show” An evaluation puzzle: “Mobile first” An evaluation puzzle: “Many hands” An evaluation puzzle: Loaves and fishes An evaluation puzzle: “Freak weather” An evaluation puzzle: “Billionaire” Using Dropbox for syncing Shiny app data on Amazon EC2 Progress on the Causal Map app Articles and presentations related to Causal Maps and Theorymaker Better ways to present country-level data on a world map: equal-area cartograms A starter kit for reproducible research with R A reproducible workflow for evaluation reports Welcome to the Wiggle Room Realtime comments on a Theory of Change Responses to open questions shown as tooltips in a chart A panel on visualising Theories of Change for EES 2018?