I\'ve looked in different questions for a solution and I\'ve tried what was suggested but I have not found a solution to make it work.
Everytime I want to run this c
Invoking dev.off() to make RStudio open up a new graphics device with default settings worked for me. HTH.
dev.off()