RSCRIPT(1) FSF RSCRIPT(1)

# [NAME](#NAME)

Rscript - front end for scripting with R

# [SYNOPSIS](#SYNOPSIS)

**Rscript** \[*options*] *file* \[*args*]  
**Rscript** \[*options*] *-e expr* \[*-e expr2* ...] \[*args*]

# [DESCRIPTION](#DESCRIPTION)

A binary front-end to R, for use in scripting applications.

# [OPTIONS](#OPTIONS)

[**--help**](#help)

Print usage and exit

[**--version**](#version)

Print version and exit

[**--verbose**](#verbose)

Print information on progress

[**--default-packages**=*LIST*](#default)

Attach these packages on startup; a comma-separated LIST of package names, or 'NULL'

## [and options to R (in addition to --no-echo --no-restore), for example:](#and_options_to_R_%28in_addition_to_--no-echo_--no-restore%29,_for_example:)

[**--save**](#save)

Do save workspace at the end of the session

[**--no-environ**](#no)

Don't read the site and user environment files

[**--no-site-file**](#no~2)

Don't read the site-wide Rprofile

[**--no-init-file**](#no~3)

Don't read the user R profile

[**--restore**](#restore)

Do restore previously saved objects at startup

[**--vanilla**](#vanilla)

Combine **--no-save**, **--no-restore**, **--no-site-file**, **--no-init-file** and **--no-environ**

Expressions (one or more '-e &lt;expr&gt;') may be used \*instead* of 'file'. Any additional 'args' can be accessed from R via 'commandArgs(TRUE)'. See also ?Rscript from within R.

October 2026 Rscript (R)

---

Document: Rscript(1) from R 4.6.1-r5 (Chainguard OS)
Source: https://cloud.r-project.org/src/base/R-4/R-4.6.1.tar.gz
