David Villegas RĂos
2015-Mar-19 08:48 UTC
[R] Timestamp of exported files not updated when the file name is overwritten (ggsave)
Hi. I have a script in which I export some plots to a folder in my PC. The plots are exported with the function ggsave (in ggplot2). Whenever I re-run the code and export updated plots, the name of the exported file is overwritten (as expected) but the timestamp is not updated what turns it very difficult to locate them, sometimes. Any thought or solution for this issue? Thanks, David [[alternative HTML version deleted]]
jim holtman
2015-Mar-19 16:21 UTC
[R] Timestamp of exported files not updated when the file name is overwritten (ggsave)
I just tried the example for 'ggsave' and waited a minute between each run, and the time modified for the file name was correct in that it showed a different time when run the second time. Please post the code you are running, the system you are using and then an example of what the times are. Are you looking at the time 'modified' or 'created'; this will make a difference. So a few more particulars about your problem would be helpful. Try running the example for ggsave as I did and see if the times change. Jim Holtman Data Munger Guru What is the problem that you are trying to solve? Tell me what you want to do, not how you want to do it. On Thu, Mar 19, 2015 at 4:48 AM, David Villegas R?os <chirleu at gmail.com> wrote:> Hi. > I have a script in which I export some plots to a folder in my PC. The > plots are exported with the function ggsave (in ggplot2). > Whenever I re-run the code and export updated plots, the name of the > exported file is overwritten (as expected) but the timestamp is not updated > what turns it very difficult to locate them, sometimes. > > Any thought or solution for this issue? > > Thanks, > > David > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]