construct_cached_file_path {dlr}R Documentation

Construct Cache Path

Description

Construct the full path to the cached version of a file within a particular app's cache, using the source path of the file to make sure the cache filename is unique.

Usage

construct_cached_file_path(source_path, appname, extension = "")

Arguments

source_path

Character scalar; the full path to the source file.

appname

Character; the name of the application that will "own" the cache, such as the name of a package.

extension

Character scalar; an optional filename extension.

Value

The full path to the processed version of source_path in the app's cache directory.

Examples

construct_cached_file_path(
  source_path = "my/file.txt",
  appname = "dlr",
  extension = "rds"
)

[Package dlr version 1.0.1 Index]