"R Presentations require the knitr package " +
"(version 1.2 or higher)");
return;
}
PresentationState state = sessionInfo.getPresentationState();
// if we are showing a tutorial then don't allow preview
if (state.isTutorial())
{
globalDisplay_.showMessage(
MessageDisplay.MSG_WARNING,
"Unable to Preview",
"R Presentations cannot be previewed when a Tutorial " +
"is active");
return;
}
// if this presentation is already showing then just activate
if (state.isActive() &&
state.getFilePath().equals(docUpdateSentinel_.getPath()))
{
commands_.activatePresentation().execute();
save();
}
// otherwise reload