shinyobjects
shinyobjects copied to clipboard
Better error msg
eval_code <- function(x, envir = NULL) {
as_char_x <- substr(as.character(x), 1, 100)
tryCatch(
eval(x, envir = envir),
error = function(e) {
message("error: could not parse")
print(as_char_x)
},
warning = function(w) {
message("warning:")
print(as_char_x)
}
)
}