citationServer {mmints} | R Documentation |
Server Function for Citation Module
Description
This function defines the server logic for the citation module.
Usage
citationServer(id, citations)
Arguments
id |
A character string that matches the ID used in |
citations |
A named list of citations. Each element can be:
|
Value
A Shiny module server function.
Examples
citations <- list(
"Example Citation" = "Author, A. (Year). Title. Journal, Vol(Issue), pages.",
"R Citation" = function() format_citation(utils::citation())
)
server <- function(input, output, session) {
citationServer("my_citations", citations)
}
[Package mmints version 0.2.0 Index]