You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
library(cheopsr)
# set some global options
options(cheopsr.username="...") # university username to log into the cluster
options(cheopsr.account="...") # account which should be charged when submitting jobs defaults to "UniKoeln"
options(cheopsr.key="...") # location of the private key file defaults to "~/.ssh/id_rsa"# install the snow package and other packages you need on the cluster
cheops_install("snow")
# a template for a script file usning the MPI cluster can be found at:
system.file("examples", "test.R", package="cheopsr")
# define options and submit the jobopt<- cheops_slurmcontrol(nodes=2, tasks=8, mem="1gb", time="00:00:20", partition="devel")
job<- cheops_lapply(rep(100, 1000), function(n){
mean(rnorm(n))
}, options=opt, jobname="clustertest")
cheops_jobs()
# read the log file while job is running
cat(cheops_getlog(job$name), sep="\n")
# wait until job is finished and get the resultsres<- cheops_readRDS(job$results)
# visualize the result
hist(unlist(res))
About
R package for talking to the HPC cluster at the University of Cologne