0
다음 내용을 표시하기 위해 서버 코드를 작성했습니다. 나는 테이블rshiny에서 rhandsontable을 사용하여 테이블을 다운로드하는 방법은 무엇입니까?
#server
value <- eventReactive(input$file, {
theFile <- input$file
if(is.null(theFile)) {
return(NULL)}
file.rename(theFile$datapath,paste(theFile$datapath, ".xlsx", sep=""))
Data <- read_excel(paste(theFile$datapath, ".xlsx", sep = ""), 1)
Data
})
output$contents <- renderRHandsontable({
rhandsontable(value())
})
표를 편집 할 때마다 – achutharunr
isolate 및 hot_to_r의 기능은 무엇입니까? Im 아마추어, 가능한 한 간단한 단어로 설명하십시오 –
** isolate ** - Isolate는 연관된 반응성이없는 위젯의 가치를 얻을 수있게합니다. 위젯과 연관된 어떤 조치도 코드 블록에 영향을 미치지 않습니다. 예를 들어 isolate 중에 _input $ savefile_을 사용했다면 버튼을 클릭해도 코드가 실행되지 않습니다. ** hot_to_r ** - 내가 잘못하지 않았다면 rHandsontable은 Java 기반 패키지이므로 hot_to_r을 통해 rHandsontable 객체를 실행하여 R 객체로 변환해야합니다. – achutharunr