try_emo_ji() is a top-level helper (a lexical sibling of the Shiny server closure), so `input$emoji$name` was unbound there and the tryCatch() silently swallowed the error, making the 'try raw name first' branch dead code. Use the `name` parameter, which already holds input$emoji$name (passed by the caller). Found via ry v0.6.1 RY010 (unbound-variable).main
| try_emo_ji <- function(name, session = shiny::getDefaultReactiveDomain()) { | try_emo_ji <- function(name, session = shiny::getDefaultReactiveDomain()) { | ||||
| emo_ji <- tryCatch({ | emo_ji <- tryCatch({ | ||||
| emo::ji(input$emoji$name) | |||||
| paste0('emo::ji("', input$emoji$name, '")') | |||||
| emo::ji(name) | |||||
| paste0('emo::ji("', name, '")') | |||||
| }, | }, | ||||
| error = function(e) { | error = function(e) { | ||||
| NULL | NULL |