validate_filename: Get a valid filepath

Description Usage Arguments Value

View source: R/naming-files.R

Description

Get a valid filepath

Usage

1
2
3
4
5
6
validate_filename(
  filename = nice_filename(),
  dir = NULL,
  replace = FALSE,
  filepath = paste(c(dir, filename), collapse = "/")
)

Arguments

filename

The name of the file to check

dir

The directory

replace

If TRUE then the input is returned regardless of whether the file exists

filepath

Optionally supply the full filepath instead of filename and dir

Value

A character string


wurli/quickReport documentation built on Dec. 23, 2021, 6:13 p.m.