Created
July 16, 2019 08:32
-
-
Save zappingseb/f1f5e382ecca919faf62ea243390f5c6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
observeEvent(input$show_r_code, { | |
showModal(modalDialog( | |
title = "R Code", | |
tags$pre( | |
id = "r_code", | |
expandChain( | |
library_code, | |
data_code, | |
output$plot1(), | |
output$text1() | |
) %>% formatCode() %>% paste(collapse = "\n") | |
), | |
footer = tagList( | |
actionButton("copyRCode", "Copy to Clipboard", `data-clipboard-target` = "#r_code"), | |
modalButton("Dismiss") | |
), | |
size = "l", | |
easyClose = TRUE | |
)) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment