Upload app_simples.R
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354# Versão simplificada para diagnóstico# Testa cada pacote individualmente
cat("=== Iniciando aplicação ===\n")
cat("Carregando shiny...\n")library(shiny)cat("shiny carregado com sucesso\n")
cat("Carregando readxl...\n")library(readxl)cat("readxl carregado com sucesso\n")
cat("Carregando rpivotTable...\n")library(rpivotTable)cat("rpivotTable carregado com sucesso\n")
cat("Tentando ler o arquivo Excel...\n")dados <- tryCatch({ read_excel("STATUS1.xlsx")}, error = function(e) { cat("ERRO ao ler Excel:", e$message, "\n") return(NULL)})
if (!is.null(dados)) { cat("Arquivo Excel lido com sucesso! Linhas:", nrow(dados), "\n")} else { cat("Falha ao ler arquivo Excel\n")}
ui <- fluidPage( titlePanel("Teste Simplificado - Pivot Table"), mainPanel( h3("Se você vê isto, a aplicação iniciou!"), rpivotTableOutput("pivot") ))
server <- function(input, output, session) { cat("Servidor iniciado\n") output$pivot <- renderRpivotTable({ if (!is.null(dados)) { rpivotTable(dados) } else { NULL } })}
cat("Iniciando shinyApp...\n")shinyApp(ui, server)app_simples.RAdded+54