construct.file.path: Construct File Path

View source: R/ReadWriter.R

construct.file.pathR Documentation

Construct File Path

Description

Constructs a complete file path using either provided manual file name and directory or defaults to processing a given filename and using the current working directory.

Usage

construct.file.path(
  filename = NULL,
  suffix = NULL,
  extension = NULL,
  manual_file_name = NULL,
  manual_directory = NULL,
  v = TRUE
)

Arguments

filename

The base file name to process. Default: NULL.

suffix

The file name suffix to be appended. Default: NULL.

extension

The file extension to be appended. Default: NULL.

manual_file_name

An optional manual specification for the file name. Default: NULL.

manual_directory

An optional manual specification for the directory. Default: NULL.

v

verbose Print path? Default: TRUE.

Value

A string representing the constructed file path.

Examples

construct.file.path(
  filename = "report", manual_file_name = NULL, manual_directory = NULL,
  extension = "txt"
)

vertesy/ReadWriter documentation built on Nov. 24, 2024, 10:40 p.m.