Help me out #rstats hive mind. I've been asked to explain the benefits of RMarkdown. I'm developing a list on a continuum from simple (i.e. do what you currently do, just better) to complex (i.e. completely transform how you work). Here 'tis:
18
13
2
80
I love using RMarkdown to document analyses, but if there's a downside it's that I find it a bit harder to use than a plain R script if you're on a Linux server (though if there are easy ways to use RMarkdown from Linux, I'd love to learn)
1
1
What's so hard? I use Rmarkdown on Ubuntu every day. I can't imagine a better way to work.
2
4
Writing little bash scripts (e.g. to run knitr with various options) goes a long, long way. Next I want to learn how to write a script that creates .md files from .Rmarkdown files for blogdown without running RStudio.
2
5
Rscript -e "blogdown::hugo_build()" will build the site including generating all .md from .Rmd files. Rscript -e "blogdown::serve_site()" will serve the site to a local browser. I have these in a Makefile.
2
1
4
You might find littler helpful, from @eddelbuettel. Lots of small scripts for doing R related things from the cmd line. dirk.eddelbuettel.com/code/l…
1
11
Yup: use #!/usr/bin/env r, chmod to 0755 and you're good. No need to wrap w/ bash. Give the scripts unique-ish names and tab-completion wins. Many examples (build, install, checl, Rmd->pdf, ...) at github.com/eddelbuettel/litt…

Mar 3, 2019 · 12:15 AM UTC

6