prepare_path: Directory creation and file path concatenation

View source: R/plotting.R

prepare_pathR Documentation

Directory creation and file path concatenation

Description

Given a folder, file base name and suffix, ensures the directory exists, and returns the ready file path.

Usage

prepare_path(folder, fileBaseName, fileSuffix)

Arguments

folder

Folder path, without trailing slash

fileBaseName

File base name, excluding trailing dot

fileSuffix

File suffix without leading dot (e.g., "png", "pdf")

Value

Complete file path


tidytidbits documentation built on March 18, 2022, 6:10 p.m.