implement in-place conversion to Shiny document when requested