prepare_filepath: Prepare file path

View source: R/file_helper.R

prepare_filepathR Documentation

Prepare file path

Description

Prepares a file path by setting the output directory and modifying with a prefix and/or suffix.

Usage

prepare_filepath(
  outfile = NULL,
  outdir = NULL,
  prefix = NULL,
  suffix = NULL,
  create_dir = TRUE
)

Arguments

outfile

the name of the output file.

outdir

the name of the output directory (defaults to current directory).

prefix

a prefix to be added to the file name.

suffix

a suffix to be added to the file name (before file extension).

create_dir

whether to create directory if it does not exist

Value

A file path.


cancerit/RCRISPR documentation built on April 26, 2023, 10:12 p.m.