Difference between revisions of "Rocky R Prime"

From NIMBioS
(Example for Running R Scripts on Rocky)
Line 4: Line 4:


=== R serial script ===
=== R serial script ===
Code
<pre>
library(foreach)
registerDoSeq()
 
library(doParallel)
 
registerDoParallel(40)
 
</pre>


=== R parallel script ===
=== R parallel script ===

Revision as of 19:45, 6 April 2023

Insert example here

Prime Number example code

R serial script

library(foreach)
registerDoSeq()

library(doParallel)

registerDoParallel(40)

R parallel script

Code

Slurm submission script

Code

Running the Prime Number example

Uploading the code

Submitting the script

Looking at the results