Browse Source

rscript: add page (#6686)

Josh Cook 3 years ago
parent
commit
6b5364ce2f
1 changed files with 20 additions and 0 deletions
  1. 20 0
      pages/common/rscript.md

+ 20 - 0
pages/common/rscript.md

@@ -0,0 +1,20 @@
+# Rscript
+
+> Run a script with the R programming language.
+> More information: <https://www.r-project.org>.
+
+- 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`