Creates a file

Rename file

copy file

Logical test of whether file exists

Check whether a symlink exists

file_create(path, recursive = FALSE)

file_remove(path)

file_rename(from, to)

file_copy(from, to, overwrite = FALSE, recursive = FALSE)

file_exists(path)

symlink_exists(path)

Arguments

path

Path

recursive

Logical indicating whether to recursively create new file (directories created as necessary). This defaults to FALSE.

from

File to rename/copy

to

New/copy name

overwrite

Logical indicating whether to overwrite

Value

Silently returns logical indicating success.

Logical value with TRUE indicating it exists

See also

Other exists: dir_create

Other exists: dir_create