clustermq_get_logs | R Documentation |
If you use "log_file = clustermq_logfile()" in your template, then you can use this function to get the log file paths or directly read the contents of the log files.
clustermq_get_logs(lines = 0, logfile_dir = NULL)
lines |
The number of lines of each log file to read. If 0, then the log file paths will be returned; if >0 then the first N lines will be printed; if <0 then the last N lines will be printed. |
logfile_dir |
The base directory containing all of the logfiles. If not provided, then this is obtained by getOption('clustermq.logfile') |
logfile paths or NULL
clustermq_setup() tmpl = list(job_mem = '8G', log_file = clustermq_logfile()) fx = function(x, y) x * 2 + y Q(fx, x=1:3, const=list(y=10), n_jobs=10, job_size=1, template=tmpl) clustermq_get_logs() # getting log file paths clustermq_get_logs(lines=10) # reading the first 10 lines clustermq_get_logs(lines=-10) # reading the list 10 lines
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.