소스 검색

Shiny skeleton

master
Maxime Wack 6 년 전
부모
커밋
20c347ac84
1개의 변경된 파일16개의 추가작업 그리고 4개의 파일을 삭제
  1. +16
    -4
      app.R

+ 16
- 4
app.R 파일 보기

@@ -9,11 +9,23 @@ options(DT.options = list(paging = F,
dom = "Bfrtip",
buttons = c("copy", "excel")))

url <- "https://en.wikipedia.org/wiki/Comparison_of_file_comparison_tools"
ui <- fluidPage(
inputPanel(
textInput("wiki_url", "Wikipedia comparison page"),
actionButton("go", "Load tables")
)
)

server <- function(input, output, session)
{
tables <- eventReactive(input$go,{
GET(url) %>%
content %>%
html_table(fill = T)
})
}


GET(url) %>%
content %>%
html_table(fill = T) %>%
reduce(inner_join) %>%
mutate_if(is.character, factor) %>%
datatable(filter = "top")

불러오는 중...
취소
저장