Download app.R from roundb/project: direct link, hf CLI and curl.
- Browser
- Download file 886 Bytes
-
https://huggingface.co/spaces/roundb/project/resolve/main/app.R
- Command line
-
hf download hf://spaces/roundb/project/app.R
-
curl -L -o app.R https://huggingface.co/spaces/roundb/project/resolve/main/app.R
886 Bytes
| library(shiny) | |
| library(readxl) | |
| library(rpivotTable) | |
| ui <- fluidPage( | |
| titlePanel("EDA no Browser – rpivotTable"), | |
| mainPanel( | |
| width = 12, | |
| tabsetPanel( | |
| tabPanel( | |
| "Pivot Table", | |
| rpivotTableOutput("pivot") | |
| ), | |
| tabPanel( | |
| "Informações", | |
| h3("Sobre os Dados"), | |
| p(strong("Arquivo:"), "STATUS1.xlsx"), | |
| hr(), | |
| verbatimTextOutput("info") | |
| ) | |
| ) | |
| ) | |
| ) | |
| server <- function(input, output, session) { | |
| STATUS <- reactive({ | |
| read_excel("STATUS1.xlsx") | |
| }) | |
| output$pivot <- renderRpivotTable({ | |
| rpivotTable(STATUS()) | |
| }) | |
| output$info <- renderPrint({ | |
| dados <- STATUS() | |
| cat("Dimensões:", nrow(dados), "linhas x", ncol(dados), "colunas\n\n") | |
| cat("Colunas:\n") | |
| print(names(dados)) | |
| cat("\n") | |
| cat("Primeiras linhas:\n") | |
| print(head(dados)) | |
| }) | |
| } | |
| shinyApp(ui, server) | |