Description Usage Arguments Details Value
View source: R/submit_remote.R
Submit Job to HPC where project files are already stored on the file server.
1 2 3 | submitRemote(credentials, remote.folder, script.file, submission.file, data,
quiet = FALSE, host = "lyra.qut.edu.au", port = 22,
ignore.warning = FALSE)
|
credentials |
Vector of username and password (<Username>, <Password>). REQUIRED |
remote.folder |
Root directory for the project stored on the remote file server.REQUIRED |
script.file |
R file to be called. REQUIRED |
submission.file |
ADD SOON |
data |
ADD SOON. REQUIRED |
quiet |
Turns on quiet mode, disabling all messages except warnings and errors (default: FALSE) |
host |
Host name for the remote server (default: lyra.qut.edu.au) |
port |
Port number to be used for SSH and SCP to the host (defualt: 22) |
ignore.warning |
Suppress warning messages (default: FALSE) |
Keep in mind that four parameters, credentials, remote.folder, script.file, and data are required.The
remote fileserver must contain the directory remote.folder
and script.file
must be found
in the top level of remote.folder
.
Before attempting to submit the job the credentials
and existence of remote.folder
and
script.file
are checked. An error is given if any fail.
data
must be either a data.frame or a data.table which have the column names:
"JOBNAME" Name of the job to be submitted to HPC. If REPEAT
!= 1 the job name will
be affixed an identifier. While not necessary it is recommended each job name in the submission stack
is unqiue (A warning will be produced if a conflixt exists). Only letters, numbers and underscores can
be used, job name must begin with a letter (Violation to this will produce an error). REQUIRED.
"MEMORY" The memory required for the job. Example: "100mb" or "2gb" requests 100 megabytes or 2 gigabytes respectively. REQUIRED.
"WALLTIME" The time requested for the job on the HPC in the form "<hours>:<mins>:<secs>". Example: "1:30:00" will request 1hour and 30minutes. A single number will be converted to hours and minutes, for example "1.5" will converted to "1:30:00". REQUIRED.
"NCPUS" Number of CPUs to be requested from the node for parallelisation. NOT REQUIRED, DEFAULT: 1.
"DONOTRUNJOB" If TRUE
the job is not submitted. Useful for submitting larger structures
of parameters without partitioning them into smaller chunks. NOT REQUIRED, DEFAULT: FALSE.
"REPEAT" Resubmit a particular job REPEAT
times. Useful when submitting a simulation that includes
random elements. Owing to how the Random Number Generator seeds, each job could initialise with the same seed.
Due to this a random integer is provided to each submission to mitigate this issue. NOT REQUIRED, DEFAULT: 1.
In addition to these columns are any arguments to be passed to the user script in the form <col_name>=<value>
.
A structure (dataframe or datatable, matches the structure of data
) which contains the details of every
submission. Each row of structure contains all the job details (job name, memory, wall time, ncpus, jobid) as well as
the arguments submitted (both user defined and provided).
The structure is also saved as a .rds file as well as parsed into a DSV file (space-delimited). These files are saved
to the remote.folder
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.