From 6b5364ce2f09ab392765f668bf02ca22c7fd527a Mon Sep 17 00:00:00 2001 From: Josh Cook <39419448+jhrcook@users.noreply.github.com> Date: Sun, 3 Oct 2021 09:51:02 -0400 Subject: [PATCH] rscript: add page (#6686) --- pages/common/rscript.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/common/rscript.md diff --git a/pages/common/rscript.md b/pages/common/rscript.md new file mode 100644 index 0000000000..4dd7eeeec9 --- /dev/null +++ b/pages/common/rscript.md @@ -0,0 +1,20 @@ +# Rscript + +> Run a script with the R programming language. +> More information: . + +- Run a script: + +`Rscript {{path/to/file.R}}` + +- Run a script in vanilla mode (i.e. a blank session that doesn't save the workspace at the end): + +`Rscript --vanilla {{path/to/file.R}}` + +- Execute one or more R expressions: + +`Rscript -e {{expression1}} -e {{expression2}}` + +- Display R version: + +`Rscript --version`