getCacheFile: Find cache file location by name

View source: R/mavevis.R

getCacheFileR Documentation

Find cache file location by name

Description

Finds the location for a cache file. The file does not necessary need to exist yet, as this function is meant to be used determine to a location for both storage and retrieval.

Usage

getCacheFile(name)

Arguments

name

the name of the file, e.g. "P12456_alignment.fasta"

Details

Depending on the execution context, the storage location may differ. The cache location can be controlled with the environment variable $MAVEVIS_CACHE. This will be made use of within the mavevis server docker container. If the variable is not set, a directory ".mavecache/" will be created in the user's home directory to be used as the storage location.

Value

the full path to the file

Examples

file <- getCacheFile("P12345_alignment.fasta")


jweile/mavevis documentation built on Oct. 30, 2023, 7:16 a.m.