Open mmuurr opened 1 year ago
UPDATE: I realized this isn't specific to magrittr or pipelines; here's a third output that also displays the err (when input$row_ix
is NULL
):
output$text_3 <- renderPrint({
slice(mtcars, req(input$row_ix))
})
This is a pretty contrived reprex, but the moral of the story is I'd expect
text_1
andtext_2
to be identical in the app below. They are identical until one clears the numeric input, which then sends ShinyNULL
as the reactive val:When
input$row_ix
isNULL
,text_1
displays the error (unexpected) whiletext_2
silently swallows the error and displays nothing (expected).(I briefly thought this could be due to magrittr's lazy evaluation, so I also tried with the new(ish)
%!>%
operator, but found the same behavior.)Session Info