if (result.hasShinyContent() && !result.isShinyDocument())
{
// If the result has Shiny content but wasn't rendered as a Shiny
// document, suggest rendering as a Shiny document instead
new ShinyDocumentWarningDialog(new OperationWithInput<Integer>()
{
@Override
public void execute(Integer input)
{
switch (input)