I am making making an R tutorial that runs in R within Swirl. I am trying open specific PDF files within R. I am using:
file.show(paste(getwd(),"/cv.pdf",sep=""), title="some title")
But the display is like this:
It does not show PDF file. Works well for TXT file.
I am running OSX 10.11.1. Default PDF viewer is "Preview" and I do not have Adobe Reader installed. Is there a way I can have PDF file opened up through an R script?