touch | R Documentation |
touch
UtilityCreating files or ensuring that their file modification times change.
touch2
is an alternate - yet not faster - implementation.
touch(...)
touch2(...)
... |
Paths to files. |
The Paths to the files touched.
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()
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.