Index of /examples/r/examples/ex01-helloworld

Icon  Name                    Last modified      Size  Description
[DIR] Parent Directory - [TXT] summary.txt 08-Sep-2016 15:16 0 [   ] helloWorld.R 08-Sep-2016 16:14 208 [   ] Rjob.qsub 05-Sep-2017 20:50 487 [   ] Readme 06-Jun-2014 12:18 1.2K [   ] mypdf.pdf 08-Sep-2016 14:59 4.5K [IMG] mypdf.png 05-Sep-2017 20:52 4.8K

RCS sample R code

This directory contains a simple "Hello, World!" R script.

Interactive execution:

Start an Interactive R sessions by typing R at the SCC prompt:
scc1% R
To execute the code in your R session, type:
> source("helloWorld.R")
To exit an interactive R session, type:
> q()

Batch execution:

At the SCC prompt execute:
scc1% R CMD BATCH helloWorld.R
The output will be written to the file helloWorld.Rout

Submit R job:

This directory contains a simple Rjob script that, when submitted to the batch system, will execute the helloWorld.R script. To submit the job, type the following command at the SCC prompt:
scc1% qsub Rjob
Users who are members of any Medical Campus projects must also include their project group name:
scc1% qsub -P scv Rjob

Helpful Links:

R frequently Asked Questions
Running Jobs on the SCC