Nothing
context("Generate")
test_that("generatePresentationMultiple", {
savLoc <- file.path(tempdir(), 'example')
if(!dir.exists(savLoc)){
dir.create(savLoc)
}
generatePresentationMultiple(
server = conDet$server(),
username = conDet$user(),
password = conDet$password(),
dbms = conDet$dbms,
resultsSchema = schema,
targetId = 1,
targetName = 'target',
cmSubsetId = 2,
sccsSubsetId = NULL,
indicationName = NULL,
outcomeIds = 3,
outcomeNames = 'outcome',
comparatorIds = 2,
comparatorNames = 'Comp',
covariateIds = NULL,
details = list(
studyPeriod = 'All Time',
restrictions = "Age - None"
),
title = 'ASSURE 001 ...',
lead = 'add name',
date = Sys.Date(),
backgroundText = '',
evaluationText = '',
outputLocation = savLoc,
outputName = paste0('presentation_', gsub(':', '_',gsub(' ','_',as.character(date()))),'.html'),
intermediateDir = tempdir()
)
# ensure report is generated
testthat::expect_true(length(dir(savLoc, pattern = '.html', full.names = TRUE)) > 0)
# clean up and remove file
file.remove(dir(savLoc, pattern = '.html', full.names = TRUE))
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.