ensure input is visible when entering debug mode
add previewRd function to RStudio package