file_exists: Checks if a file exists

Description Usage Arguments Value Examples

View source: R/addons.R

Description

Checks if files exists after converting relative into absolute path based on current working directory by default.

Usage

1

Arguments

wd

A Path to the file, if not set otherwise the working directory is used.

x

A filename.

Value

TRUE if file exists, FALSE if not.

Examples

1
2
file <- system.file("inst/template.docx", package = "R2wdaddons")
file_exists(file)

markheckmann/R2wdaddons documentation built on Sept. 13, 2019, 8:40 a.m.