log_date | R Documentation |
This function searches a log file, such as those created with job_single()
,
for the start and end dates for the SGE job. This information can then be
used to find the qacct
file to retrieve information about the job at hand.
log_date(log_file, tz = "EST", date_lines = c("Job starts", "Job ends"))
log_file |
The path to a SGE log file. |
tz |
Time zone for your SGE cluster. Defaults to |
date_lines |
A |
Only the first occurrenses of the start and end time line identifiers
defined by date_lines
will be retrieved.
A vector of length 2 with the start and end times
Leonardo Collado-Torres
log_jobid()
## Example log file
bsp2_log <- system.file("extdata", "logs", "delete_bsp2.txt", package = "sgejobs")
## Find start/end dates
log_date(bsp2_log)
## Another example log file
twas_gene_HIPPO <- system.file("extdata", "logs",
"compute_weights_full_HIPPO_gene.1.txt",
package = "sgejobs"
)
log_date(twas_gene_HIPPO)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.