Creating some graphs, and want the date/time of creation to be in the filename. I found the answers to this question very helpful on that topic, and
paste("plotname",Sys.time(),".wmf",sep='')
does in fact spit out
[1] "plotname2013-07-02 11:55:04.wmf"
but
win.metafile(paste("plotname",Sys.time(),".wmf",sep=''))
# win.metafile("test.wmf")
ggplot(data.file, aes(x = group, y = delta)) + geom_boxplot()
dev.off()
gives
Error in win.metafile(paste("plotname", Sys.time(), ".wmf", sep = "")) : unable to start win.metafile:plotname2013-07-02 11:56:23.wmf() device
where it works with the simpler win.metafile("test.wmf") command. What's the problem here?