How to use R language

2021/05/21 Created

2023/11/21 Updated

R language included in EPEL is available. 

The executable file is in the path below. 

/usr/bin/R

If you type "/usr/bin/R", R starts interactively.

X-Window environment

 If you type "rstudio" in an environment where X Window system is available, RStudio Desktop (integrated development environment) starts with GUI. 

Batch processing 

Please prepare a file "FILENAME.r" in advance and enter as follows.

/usr/bin/R --no-save < FILENAME.r


To put the output in a separate file, enter as follows.

/usr/bin/R --no-save < FILENAME.r > OUTPUTFILE_NAME