savePlot function

I want to use savePlot in RStudio as opposed to tiff(filename= ...
How do I change RStudio device to windows device for a pc so it will work?

dev.cur() #RStudioGD 
tiff(filename="corrplot.tif", width=3, height=2.5, 
      units="in", res=100, family="TimesNewRoman")
corrplot <- corrplot(mycor, type = "upper",  tl.col = "black", tl.srt = 45)

or

corrplot <- corrplot(mycor, type = "upper",   tl.col = "black", tl.srt = 45)
dev.cur() #windows
savePlot("corrplot.tif","tif

")

Thanks. MM

data(mtcars)
M = cor(mtcars)
library(corrplot)
dev.new("windows")
corrplot(M)
savePlot("myplot.tiff","tiff")

data(mtcars)

M = cor(mtcars)
library(corrplot)
corrplot 0.92 loaded
dev.new("windows")
NULL
corrplot(M)
savePlot("myplot.tiff","tiff")
Error in savePlot("myplot.tiff", "tiff")

comment:it needs to be told to go to the windows device?
thanks for replying