Debian Codegraph @

man/file_rename.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/paths.R
3 \name{file_rename}
4 \alias{file_rename}
5 \title{Rename files and directories}
6 \usage{
7 file_rename(from, to)
8 }
9 \arguments{
10 \item{from, to}{Original and target paths, respectively.}
11 }
12 \value{
13 A logical vector (\code{TRUE} for success and \code{FALSE} for failure).
14 }
15 \description{
16 First try \code{\link[=file.rename]{file.rename()}}. If it fails (e.g., renaming a file from one volume
17 to another on disk is likely to fail), try \code{\link[=file.copy]{file.copy()}} instead, and clean
18 up the original files if the copy succeeds.
19 }