rrstudiorpres

RStudio R Presentation Preview Error


I am trying to create an R Presentation in RStudio (File > New File > R Presentation). But when I try to create one with my working directory set to anything other than my default, I receive an error when it tries to preview.

The error displays in the preview panel just beneath the title where the author and date should be, and it says "Error in readLines(if (is.character(input2)) { : cannot open the connection". There are also no other slides that can be displayed even though there should be four from the default template.

I've searched all over but I haven't been able to find anyone with this issue. Anyone have an idea what might be causing this?

I'm running:


Solution

  • I completely reinstalled all of my R programs (R, Rtools, RStudio), and started from a blank slate. I can now create a presentation in a non-default working directory. As rawr stated, it was probably being caused because of some underlying path issue with the file being created.