From 316487ffb821edf6cd3c47990a812972c0de84a5 Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Sat, 6 Mar 2021 12:35:56 +0100 Subject: Add R sheet --- R.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 R.md diff --git a/R.md b/R.md new file mode 100644 index 0000000..07382bf --- /dev/null +++ b/R.md @@ -0,0 +1,31 @@ +# R and R Markdown + +## Installing packages + +In R shell: + + install.packages() + +## Include a file + + source('') + +## Compiling R Markdown + + require(rmarkdown) + render('') # defaults to HTML + render('' output_format='pdf_document') + +## R Markdown + +Run R code: + + ```{r} + + ``` + +Run code but don't show code block: + + ```{r, echo = False} + + ``` -- cgit v1.2.3