Skip to content

Update file_touch documentation #486

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions R/file.R
Original file line number Diff line number Diff line change
Expand Up @@ -227,16 +227,15 @@ file_move <- function(path, new_path) {

#' Change file access and modification times
#'
#' Unlike the touch POSIX utility this does not create the file if it does not
#' exist. Use [file_create()] to do this if needed.
#' Like the touch POSIX utility this will create the file if it does not
#' exist.
#'
#' @template fs
#'
#' @param access_time,modification_time The times to set, inputs will be
#' coerced to [POSIXct] objects.
#' @examples
#' \dontshow{.old_wd <- setwd(tempdir())}
#' file_create("foo")
#' file_touch("foo", "2018-01-01")
#' file_info("foo")[c("access_time", "modification_time", "change_time", "birth_time")]
#' \dontshow{setwd(.old_wd)}
Expand Down
5 changes: 2 additions & 3 deletions man/file_touch.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading