library(shiny)
ui <- fluidPage(
navbarPage("Hello World",
tabPanel("list_functions",
"All functions",
textInput("pkg_name", "Package"),
textOutput("all_funs")
))
)
server <- function(session, input, output){
my_funs <- reactive({
if(!req(input$pkg_name) %in% loadedNamespaces()){
suppressPackageStartupMessages(
library(req(input$pkg_name), character.only = TRUE)
)
}
getNamespaceExports(req(input$pkg_name))
})
output$all_funs <- renderText(my_funs())
}
shinyApp(ui, server)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.