knitr::opts_chunk$set(echo = FALSE) require(qrmarkdown) require(dplyr)
Add jid and add library dependencies at the begining of your rmarkdown file.
Queuing sytem uses specified directory as working directory.
Before you start queue job, specify your desired location.
QWD = sprintf("%s/jqueue", getwd()) q.setwd(wdir = QWD)
qrmarkdown::deamon(n=x, timer=10, wait=FALSE)
timer in seconds of service. For example, timer=10, start deamon service and shutdown in 10 seconds.
timer=-1 to keep it running!
qrmarkdown::deamon(n=1, timer=10, wait=FALSE) #qrmarkdown::deamon(n=x, timer=-1, wait=FALSE)
p.push(script="yourscript", params=list(generate.report=TRUE))
OUTPUT=sprintf("%s/myoutput.html", getwd() ) SCRIPT=sprintf("%s/sample.Rmd") job <- q.push(script=SCRIPT, name="My Job Name", params=list(generate.report=TRUE, your.param="Test Param")) q.wait(job)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.