OS Manuals

/usr/bin/R

Language and environment for statistical computing

From R 4.6.2-r0 (os), captured 2026-11-05 by running R --help (exit 0). permalink

Usage: R [options] [< infile] [> outfile]
   or: R CMD command [arguments]

Start R, a system for statistical computation and graphics, with the
specified options, or invoke an R tool via the 'R CMD' interface.

Options:
  -h, --help            Print short help message and exit
  --version             Print version info and exit
  --encoding=ENC        Specify encoding to be used for stdin
  --encoding ENC
  RHOME			Print path to R home directory and exit
  --save                Do save workspace at the end of the session
  --no-save             Don't save it
  --no-environ          Don't read the site and user environment files
  --no-site-file        Don't read the site-wide Rprofile
  --no-init-file        Don't read the user R profile
  --restore             Do restore previously saved objects at startup
  --no-restore-data     Don't restore previously saved objects
  --no-restore-history  Don't restore the R history file
  --no-restore          Don't restore anything
  --vanilla		Combine --no-save, --no-restore, --no-site-file,
			--no-init-file and --no-environ
  --no-readline         Don't use readline for command-line editing
  --max-connections=N   Set max number of connections to N
  --max-ppsize=N        Set max size of protect stack to N
  --min-nsize=N         Set min number of fixed size obj's ("cons cells") to N
  --min-vsize=N         Set vector heap minimum to N bytes; '4M' = 4 MegaB
  -q, --quiet           Don't print startup message
  --silent              Same as --quiet
  -s, --no-echo         Make R run as quietly as possible
  --interactive         Force an interactive session
  --verbose             Print more information about progress
  -d, --debugger=NAME   Run R through debugger NAME
  --debugger-args=ARGS  Pass ARGS as arguments to the debugger
  -g TYPE, --gui=TYPE	Use TYPE as GUI; possible values are 'X11' (default)
			and 'Tk'.
  --arch=NAME		Specify a sub-architecture
  --args                Skip the rest of the command line
  -f FILE, --file=FILE  Take input from 'FILE'
  -e EXPR               Execute 'EXPR' and exit

FILE may contain spaces but not shell metacharacters.

Commands:
  BATCH			Run R in batch mode
  COMPILE		Compile files for use with R
  SHLIB			Build shared library for dynamic loading
  INSTALL		Install add-on packages
  REMOVE		Remove add-on packages
  build			Build add-on packages
  check			Check add-on packages
  LINK			Front-end for creating executable programs
  Rprof			Post-process R profiling files
  Rdconv		Convert Rd format to various other formats
  Rd2pdf		Convert Rd format to PDF
  Rd2txt		Convert Rd format to pretty text
  Stangle		Extract S/R code from Sweave documentation
  Sweave		Process Sweave documentation
  Rdiff			Diff R output ignoring headers etc
  config		Obtain configuration information about R
  javareconf		Update the Java configuration variables
  rtags                 Create Emacs-style tag files from C, R, and Rd files

Please use 'R CMD command --help' to obtain further information about
the usage of 'command'.

Options --arch, --no-environ, --no-init-file, --no-site-file and --vanilla
can be placed between R and CMD, to apply to R processes run by 'command'

Report bugs at <https://bugs.R-project.org>.
Options (30)
OptionDescriptionSource
-h, --helpPrint short help message and exithelp + man
--versionPrint version info and exithelp + man
--encoding ENCSpecify encoding to be used for stdinhelp + man
--saveDo save workspace at the end of the sessionhelp + man
--no-saveDon't save ithelp + man
--no-environDon't read the site and user environment fileshelp + man
--no-site-fileDon't read the site-wide Rprofilehelp + man
--no-init-fileDon't read the user R profilehelp + man
--restoreDo restore previously saved objects at startuphelp + man
--no-restore-dataDon't restore previously saved objectshelp + man
--no-restore-historyDon't restore the R history filehelp + man
--no-restoreDon't restore anythinghelp + man
--vanillaCombine --no-save, --no-restore, --no-site-file, --no-init-file and --no-environhelp + man
--no-readlineDon't use readline for command-line editinghelp + man
--max-connections NSet max number of connections to Nhelp + man
--max-ppsize NSet max size of protect stack to Nhelp + man
--min-nsize NSet min number of fixed size obj's ("cons cells") to Nhelp + man
--min-vsize NSet vector heap minimum to N bytes;help + man
-q, --quietDon't print startup messagehelp + man
--silentSame as --quiethelp + man
-s, --no-echoMake R run as quietly as possiblehelp + man
--interactiveForce an interactive sessionhelp + man
--verbosePrint more information about progresshelp + man
-d, --debugger NAMERun R through debugger NAMEhelp + man
--debugger-args ARGSPass ARGS as arguments to the debuggerhelp + man
-g, --gui TYPEUse TYPE as GUI;help + man
--arch NAMESpecify a sub-architecturehelp + man
--argsSkip the rest of the command linehelp + man
-f, --file FILETake input from 'FILE'help + man
-e EXPRExecute 'EXPR' and exithelp + man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.