1RSCRIPT(1) FSF RSCRIPT(1)
2
3
4
6 Rscript - front end for scripting with R
7
9 Rscript [options] file [args]
10 Rscript [options] -e expr [-e expr2 ...] [args]
11
13 A binary front-end to R, for use in scripting applications.
14
16 --help Print usage and exit
17
18 --version
19 Print version and exit
20
21 --verbose
22 Print information on progress
23
24 --default-packages=LIST
25 Attach these packages on startup; a comma-separated LIST of
26 package names, or 'NULL'
27
28 and options to R (in addition to --no-echo --no-restore), for example:
29 --save Do save workspace at the end of the session
30
31 --no-environ
32 Don't read the site and user environment files
33
34 --no-site-file
35 Don't read the site-wide Rprofile
36
37 --no-init-file
38 Don't read the user R profile
39
40 --restore
41 Do restore previously saved objects at startup
42
43 --vanilla
44 Combine --no-save, --no-restore, --no-site-file, --no-init-file
45 and --no-environ
46
47 Expressions (one or more '-e <expr>') may be used *instead* of 'file'.
48 Any additional 'args' can be accessed from R via 'commandArgs(TRUE)'.
49 See also ?Rscript from within R.
50
51
52
53Rscript (R) November 2022 RSCRIPT(1)