I use RStudio and have never had a problem before. I recently updated my version of R and I noticed that many of my packages had to be reinstalled afterwards. Today, whenever I try to plot anything, I get the following error:
"Error in do.call(what = png, args = args) : object 'png' not found"
For example, running this:
Q <- seq(1,10,by=0.01)
p.d <- 225 - 15*Q
plot(Q,p.d, type = "l", col = "blue", xlab = "Q", ylab = "P")
I get the error: Error in do.call(what = png, args = args) : object 'png' not found
But it worked yesterday! What should I do?