Created
August 4, 2016 19:50
-
-
Save carlganz/698101eeeee4179e6f253ae47da675de to your computer and use it in GitHub Desktop.
Show how to use system.file in Rstudio Addin per http://stackoverflow.com/questions/38642524/copy-rmd-file-included-in-a-rstudio-addin-package-to-a-user-defined-directory/
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
test <- function() { | |
ui <- miniPage( | |
gadgetTitleBar("Test"), | |
miniContentPanel( | |
uiOutput("test") | |
) | |
) | |
server <- function(input,output,session) { | |
output$test <- renderUI({ | |
HTML(as.character(system.file(package="shiny"))) | |
}) | |
} | |
runGadget(ui,server) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment