RSCRIPT(1)

Bestie, this is the manual for Rscript (RSCRIPT(1), from the FSF) πŸŽ€ Let's get into it πŸ’–


✨ NAME ✨

Rscript - front end for scripting with R 🧚


πŸ’… SYNOPSIS πŸ’…

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

🌸 DESCRIPTION 🌸

Okay so Rscript is a binary front-end to R, made specifically for scripting applications. It's giving reliable energy πŸ”₯


πŸ‘‘ OPTIONS πŸ‘‘

  • --help β€” Pull up the usage info and exit πŸ™ˆ
  • --version β€” Show the version and exit ✨
  • --verbose β€” Print info on progress as it goes πŸ¦‹
  • --default-packages=LIST β€” Attach these packages on startup. It's a comma-separated LIST of package names, or 'NULL' πŸ’œ

🌈 and options to R (in addition to --no-echo --no-restore), for example: 🌈

  • --save β€” Save the workspace at the end of the session πŸ“
  • --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 β€” Restore previously saved objects at startup ⭐
  • --vanilla β€” Combine --no-save, --no-restore, --no-site-file, --no-init-file and --no-environ all in one go. Main character energy πŸ‘‘

Expressions (one or more -e <expr>) can be used instead of file. Any additional args can be accessed from R via commandArgs(TRUE). Also, look up ?Rscript from inside R, it's iconic πŸŽ€


That's the whole tea, bestie 🫢 This page is from Rscript (R), dated June 2026, and it's from the FSF, periodt πŸ’–βœ¨

πŸ“¦ where this page comes from