Validate

Published by onesixx on

https://shiny.rstudio.com/articles/validation.html

https://groups.google.com/forum/#!topic/shiny-discuss/A-eG6Birr0s

주의사항

“is.character(txt) is not TRUE” 

jsonlite::validate(txt =)은 한개의 text string을 argument로 받고
shiny::validate(조건, “error message”)은  다르다.

로딩순서 중요! (먼저 로딩된 package의 function은 masking 되기 때문에)

library(jsonlite)
library(shiny)  

 

에러메세지는 User가 알아보기 힘든 경우가 많다. 

    validate(
      need(input$data != "", "Please select a data set"),
      errorClass = "myClass"
    )

 

 

 

Categories: Shiny

onesixx

Blog Owner

Leave a Reply

Your email address will not be published.