1R(1) FSF R(1)
2
3
4
6 R - a language for data analysis and graphics
7
9 R [options] [< infile] [> outfile]
10 R CMD command [arguments]
11
13 Start R, a system for statistical computation and graphics, with the
14 specified options, or invoke an R tool via the 'R CMD' interface.
15
16 R is a language which bears a passing resemblance to the S language de‐
17 veloped at AT&T Bell Laboratories. It provides support for a variety
18 of statistical and graphical analyses. R is a true computer language
19 which contains a number of control-flow constructions for iteration and
20 alternation. It allows users to add additional functionality by defin‐
21 ing new functions.
22
23 On systems which have the GNU readline(3) library, R will maintain a
24 command history, so that commands can be recalled, edited and re-exe‐
25 cuted.
26
28 Most options control what happens at the beginning and at the end of an
29 R session, in particular which files are being read and written, and
30 how much memory is reserved for the R process.
31
32 -h, --help
33 Print short help message and exit
34
35 --version
36 Print version info and exit
37
38 --encoding=ENC
39 Specify encoding to be used for stdin
40
41 --encoding ENC
42
43 RHOME Print path to R home directory and exit
44
45 --save Do save workspace at the end of the session
46
47 --no-save
48 Don't save it
49
50 --no-environ
51 Don't read the site and user environment files
52
53 --no-site-file
54 Don't read the site-wide Rprofile
55
56 --no-init-file
57 Don't read the user R profile
58
59 --restore
60 Do restore previously saved objects at startup
61
62 --no-restore-data
63 Don't restore previously saved objects
64
65 --no-restore-history
66 Don't restore the R history file
67
68 --no-restore
69 Don't restore anything
70
71 --vanilla
72 Combine --no-save, --no-restore, --no-site-file, --no-init-file
73 and --no-environ
74
75 --no-readline
76 Don't use readline for command-line editing
77
78 --max-ppsize=N
79 Set max size of protect stack to N
80
81 --min-nsize=N
82 Set min number of fixed size obj's ("cons cells") to N
83
84 --min-vsize=N
85 Set vector heap minimum to N bytes; '4M' = 4 MegaB
86
87 -q, --quiet
88 Don't print startup message
89
90 --silent
91 Same as --quiet
92
93 -s, --no-echo
94 Make R run as quietly as possible
95
96 --interactive
97 Force an interactive session
98
99 --verbose
100 Print more information about progress
101
102 -d, --debugger=NAME
103 Run R through debugger NAME
104
105 --debugger-args=ARGS
106 Pass ARGS as arguments to the debugger
107
108 -g TYPE, --gui=TYPE
109 Use TYPE as GUI; possible values are 'X11' (default) and 'Tk'.
110
111 --arch=NAME
112 Specify a sub-architecture
113
114 --args Skip the rest of the command line
115
116 -f FILE, --file=FILE
117 Take input from 'FILE'
118
119 -e EXPR
120 Execute 'EXPR' and exit
121
122 FILE may contain spaces but not shell metacharacters.
123
124 Commands:
125 BATCH Run R in batch mode
126
127 COMPILE
128 Compile files for use with R
129
130 SHLIB Build shared library for dynamic loading
131
132 INSTALL
133 Install add-on packages
134
135 REMOVE Remove add-on packages
136
137 build Build add-on packages
138
139 check Check add-on packages
140
141 LINK Front-end for creating executable programs
142
143 Rprof Post-process R profiling files
144
145 Rdconv Convert Rd format to various other formats
146
147 Rd2pdf Convert Rd format to PDF
148
149 Rd2txt Convert Rd format to pretty text
150
151 Stangle
152 Extract S/R code from Sweave documentation
153
154 Sweave Process Sweave documentation
155
156 Rdiff Diff R output ignoring headers etc
157
158 config Obtain configuration information about R
159
160 javareconf
161 Update the Java configuration variables
162
163 rtags Create Emacs-style tag files from C, R, and Rd files
164
165 Please use 'R CMD command --help' to obtain further information about
166 the usage of 'command'.
167
168 Options --arch, --no-environ, --no-init-file, --no-site-file and
169 --vanilla can be placed between R and CMD, to apply to R processes run
170 by 'command'
171
173 Report bugs at <https://bugs.R-project.org>.
174
176 Copyright © 2021 The R Foundation for Statistical Computing Platform:
177 x86_64-redhat-linux-gnu (64-bit)
178
179 R is free software and comes with ABSOLUTELY NO WARRANTY. You are wel‐
180 come to redistribute it under the terms of the GNU General Public Li‐
181 cense versions 2 or 3. For more information about these matters see
182 https://www.gnu.org/licenses/.
183
185 The full documentation for R is provided by a collection of Texinfo
186 manuals and individual help for R objects which is also available on-
187 line.
188
189 Start R and type ?topic at the R prompt to obtain on-line information
190 for `topic'.
191
192 If the processed manuals have been installed they will be available as
193 DVI and/or PDF files in the doc/manual subdirectory of the documenta‐
194 tion directory tree (default `R RHOME`).
195
196 If the info program and the R manuals are installed on your system,
197 typing info -f R-intro, info -f R-data, info -f R-exts, info -f R-FAQ,
198 info -f R-lang and info -f R-ints should give you access to ``An Intro‐
199 duction to R'' (the basic manual), the ``R Data Import/Export'' Guide,
200 the ``R Extension Writer's Guide'', the ``R FAQ'', the ``The R Language
201 Definition'', and the ``R Internals''.
202
203
204
205R 4.1.2 November 2021 R(1)