View source: R/citationModule.R
citationServer | R Documentation |
This function defines the server logic for the citation module.
citationServer(id, citations)
id |
A character string that matches the ID used in |
citations |
A named list of citations. Each element can be:
|
A Shiny module server function.
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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.