Spaces:
Sleeping
Sleeping
Upload 4 files
Browse files- .gitattributes +1 -0
- DESCRIPTION.txt +8 -0
- Dokerfile +8 -0
- STATUS1.xlsx +3 -0
- app.r +60 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
STATUS1.xlsx filter=lfs diff=lfs merge=lfs -text
|
DESCRIPTION.txt
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Type: Shiny
|
| 2 |
+
Title: EDA Pivot Table
|
| 3 |
+
Version: 1.0
|
| 4 |
+
Imports:
|
| 5 |
+
shiny,
|
| 6 |
+
readxl,
|
| 7 |
+
dlookr,
|
| 8 |
+
rpivotTable
|
Dokerfile
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM rocker/shiny:latest
|
| 2 |
+
|
| 3 |
+
RUN R -e "install.packages(c('shiny','readxl','dlookr','rpivotTable'), repos='https://cloud.r-project.org')"
|
| 4 |
+
|
| 5 |
+
COPY app.R /srv/shiny-server/app.R
|
| 6 |
+
COPY status1.xlsx /srv/shiny-server/status1.xlsx
|
| 7 |
+
|
| 8 |
+
EXPOSE 3838
|
STATUS1.xlsx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:27869b5509c04e945c22d2b0d7583dfefcc7944e9a1e5c5488bb3d9a10ac3fc7
|
| 3 |
+
size 196277
|
app.r
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
library(shiny)
|
| 2 |
+
library(readxl)
|
| 3 |
+
library(dlookr)
|
| 4 |
+
library(rpivotTable)
|
| 5 |
+
|
| 6 |
+
ui <- fluidPage(
|
| 7 |
+
titlePanel("EDA no Browser – rpivotTable + dlookr"),
|
| 8 |
+
|
| 9 |
+
sidebarLayout(
|
| 10 |
+
sidebarPanel(
|
| 11 |
+
h4("Dataset"),
|
| 12 |
+
p("Arquivo: status1.xlsx"),
|
| 13 |
+
|
| 14 |
+
actionButton("diag", "Gerar diagnóstico dlookr")
|
| 15 |
+
),
|
| 16 |
+
|
| 17 |
+
mainPanel(
|
| 18 |
+
tabsetPanel(
|
| 19 |
+
tabPanel(
|
| 20 |
+
"Pivot Table",
|
| 21 |
+
rpivotTableOutput("pivot")
|
| 22 |
+
),
|
| 23 |
+
tabPanel(
|
| 24 |
+
"Diagnóstico",
|
| 25 |
+
uiOutput("diag_ui")
|
| 26 |
+
)
|
| 27 |
+
)
|
| 28 |
+
)
|
| 29 |
+
)
|
| 30 |
+
)
|
| 31 |
+
|
| 32 |
+
server <- function(input, output, session) {
|
| 33 |
+
|
| 34 |
+
STATUS <- reactive({
|
| 35 |
+
read_excel("status1.xlsx")
|
| 36 |
+
})
|
| 37 |
+
|
| 38 |
+
output$pivot <- renderRpivotTable({
|
| 39 |
+
rpivotTable(STATUS())
|
| 40 |
+
})
|
| 41 |
+
|
| 42 |
+
observeEvent(input$diag, {
|
| 43 |
+
|
| 44 |
+
diagnose_web_report(
|
| 45 |
+
STATUS(),
|
| 46 |
+
output_dir = "www",
|
| 47 |
+
output_file = "diagnostico.html"
|
| 48 |
+
)
|
| 49 |
+
|
| 50 |
+
output$diag_ui <- renderUI({
|
| 51 |
+
tags$iframe(
|
| 52 |
+
src = "diagnostico.html",
|
| 53 |
+
width = "100%",
|
| 54 |
+
height = "800px"
|
| 55 |
+
)
|
| 56 |
+
})
|
| 57 |
+
})
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
shinyApp(ui, server)
|