create_path: Create a Tidy Path from Directory + File + Extension

create_pathR Documentation

Create a Tidy Path from Directory + File + Extension

Description

\lifecycle

soft-deprecated

create_path() combines a directory, filename, and file extension into an expanded and tidied path.

Usage

create_path(directory, file_name = NULL, ext = NULL)

Arguments

directory

The path to a directory; optionally, the full path can be supplied here, in which case create_path() will simply expand and tidy the given file path.

file_name

The name of the file of interest; may be left NULL if this is included in directory

ext

The file extension to add to the path; may be left NULL if included in file_name or directory

Details

create_path() is now soft-deprecated in favor of path_create(), which is a re-implementation that follows fs naming conventions, allows both User- and R- based home directories, and relies on path() to combine arbitrary path components given in ....

Value

An fs_path, which is a character vector with additional attributes


jesse-smith/coviData documentation built on Jan. 14, 2023, 11:08 a.m.