R on ARC: Difference between revisions
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
$ R | $ R | ||
R version 3.6.2 (2019-12-12) -- "Dark and Stormy Night" | |||
Copyright (C) 2019 The R Foundation for Statistical Computing | |||
Platform: x86_64-pc-linux-gnu (64-bit) | |||
.... | |||
Type 'demo()' for some demos, 'help()' for on-line help, or | |||
'help.start()' for an HTML browser interface to help. | |||
Type 'q()' to quit R. | |||
> Sys.info() | |||
sysname release | |||
"Linux" "3.10.0-1127.el7.x86_64" | |||
version nodename | |||
"#1 SMP Tue Mar 31 23:36:51 UTC 2020" "arc" | |||
machine login | |||
"x86_64" "drozmano" | |||
user effective_user | |||
"drozmano" "drozmano" | |||
> quit() | |||
$ | |||
</pre> | </pre> | ||
Revision as of 21:09, 7 May 2020
General
Running R scripts from the command line
When you start R usual way you get into interactive R shell where you can type commands and get the results back. Like this:
$ module load R/3.6.2 $ R R version 3.6.2 (2019-12-12) -- "Dark and Stormy Night" Copyright (C) 2019 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-bit) .... Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > Sys.info() sysname release "Linux" "3.10.0-1127.el7.x86_64" version nodename "#1 SMP Tue Mar 31 23:36:51 UTC 2020" "arc" machine login "x86_64" "drozmano" user effective_user "drozmano" "drozmano" > quit() $