0

いくつかのグラフを作成し、作成日時をファイル名に含めたい。この質問への回答は、そのトピックに関して非常に役立つことがわかりました。

 paste("plotname",Sys.time(),".wmf",sep='')

実際に吐き出す

[1] "plotname2013-07-02 11:55:04.wmf"

しかし

win.metafile(paste("plotname",Sys.time(),".wmf",sep=''))
# win.metafile("test.wmf")
ggplot(data.file, aes(x = group, y = delta)) + geom_boxplot()
dev.off()

与える

Error in win.metafile(paste("plotname", Sys.time(), ".wmf", sep = "")) : unable to start win.metafile:plotname2013-07-02 11:56:23.wmf() device

より単純な win.metafile("test.wmf") コマンドで動作します。ここで何が問題なのですか?

4

2 に答える 2