powered by
Send a at job to remove (probably temporary) files in the future with a specified time interval from now
at
rmat(..., days = NULL, hours = NULL, minutes = NULL, dry = TRUE)
Files to be removed
Numeric, interval in days
Numeric, interval in hours
Numeric, interval in minutes
Logical, if set to TRUE, only the command will be returned and files are not really removed.
TRUE
(Invisibly) the output of the at job.
The command will delete files, and there is usually no way to get deleted files back. So make sure you know what you are doing!
Days, hours, and minutes can be given in a mixed way: they will be summed up to give the interval.
qsystem for running system commands quietly.
qsystem
# NOT RUN { tmp1 <- tempfile() tmp2 <- tempfile() rmat(tmp1, tmp2, minutes=1) # }
Run the code above in your browser using DataLab