verbatimTextOutput & can not open 'Rplots.pdf' error


#1

HI,

I’am using verbatimTextOutput & renderText with capture.output to show the output of R example programs. However, when my example program contains a plot command then the above error appears if running on the shiny server, but in RStudio (locally) it works. Any idea how I can avoid that?

Thanks sigbert


#2

Found a solution myself by https://stackoverflow.com/questions/42413999/hide-the-in-function-plot-from-r-package

I wrapped the code between

pdf(file="/dev/null")
...
dev.off()

sigbert