From e4ff9bf56be468929f78e601dfa61581ad5d8f66 Mon Sep 17 00:00:00 2001 From: Johann Gaebler <43016598+jgaeb@users.noreply.github.com> Date: Thu, 23 Jan 2025 11:24:26 -0500 Subject: [PATCH] Update file_touch documentation Per #169, this _does_ create the file if it does not exist. --- R/file.R | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/R/file.R b/R/file.R index 432b200f..bd295138 100644 --- a/R/file.R +++ b/R/file.R @@ -227,8 +227,8 @@ 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 #' @@ -236,7 +236,6 @@ file_move <- function(path, new_path) { #' 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)}