assignmentMethods <- function(analysis){
methods <- list(
parameters = function(analysis,type = 'head'){
headHash <- '##'
if (type == 'sub') {
headHash <- '###'
}
str_c("
",headHash," Parameters
```{r assignmentParamters,echo=FALSE}
assignment@parameters
```
")
},
assignments = function(analysis,type = 'head'){
headHash <- '##'
if (type == 'sub') {
headHash <- '###'
}
str_c('
',headHash,' Assignments
```{r assignmentTable,echo = FALSE,cache = FALSE}
datatable(assignment %>%
summariseAssignment(),
rownames = F,filter = "top",caption = "Summary table of molecular formula assignments")
```
')
}
)
return(methods)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.