When the code below runs the data does not get displayed in the GUI with the function "
tableOutput("data"),"
data <- data(package = .packages(all.available = TRUE))
output$data{(
data
)}
When the code below runs the data does not get displayed in the GUI with the function "
tableOutput("data"),"
data <- data(package = .packages(all.available = TRUE))
output$data{(
data
)}
I'm assuming you have an output widget in the UI named "data", in which case you should be assigning the result to it. Try the following.
library(shiny)
ui <- fluidPage(
verbatimTextOutput("pkgs")
)
server <- function(input, output) {
output$pkgs <- renderPrint(.packages(all.available = TRUE))
}
# Run the application
shinyApp(ui = ui, server = server)
Created on 2025-09-17 with reprex v2.1.1
Thank you much. The code runs perfectly.
~Giuseppa
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.