I write these commands in R to drow my chart
pdf("results/boxplot.pdf") boxplot(x) dev.off()
but in the "results" folder just an empty pdf with no boxplot is created. And when I open the pdf it says "there was an error opening this document". This file is already open or in use by another application". And this problem also occurs when I want to draw a heatmap. What should I do?