touch {fritools2} | R Documentation |
Mock the Unix touch
Utility
Description
Creating files or ensuring that their file modification times change.
touch2
is an alternate - yet not faster - implementation.
Usage
touch(...)
touch2(...)
Arguments
... |
Paths to files. |
Value
The Paths to the files touched.
See Also
Other file utilities:
clipboard_path()
,
delete_trailing_blank_lines()
,
delete_trailing_whitespace()
,
develop_test()
,
file_copy()
,
file_modified_last()
,
file_save()
,
find_files()
,
get_lines_between_tags()
,
get_mtime()
,
get_unique_string()
,
grep_file()
,
is_files_current()
,
is_path()
,
paths
,
search_files()
,
split_code_file()
Examples
file1 <- tempfile()
file2 <- tempfile()
touch(file1, file2)
t1 <- file.mtime(file1, file2)
touch(file2)
t2 <- file.mtime(file1, file2)
t1 < t2
file <- file.path(tempfile(), "path", "not", "there.txt")
touch(file)
file.exists(file)
[Package fritools2 version 4.1.0 Index]