construct_processed_filename: Construct Processed Filename

View source: R/path.R

construct_processed_filenameR Documentation

Construct Processed Filename

Description

Given the path to a file, construct a unique filename using the hash of the path.

Usage

construct_processed_filename(source_path, extension = "")

Arguments

source_path

Character scalar; the full path to the source file.

extension

Character scalar; an optional filename extension.

Value

A unique filename for a processed version of the file.

Examples

construct_processed_filename(
  source_path = "my/file.txt",
  extension = "rds"
)

macmillancontentscience/dlr documentation built on Sept. 24, 2022, 12:50 p.m.