config_file: Get path for ORFik config in cache

View source: R/utils_directory_config.R

config_fileR Documentation

Get path for ORFik config in cache

Description

Get path for ORFik config in cache

Usage

config_file(
  cache = BiocFileCache::getBFCOption("CACHE"),
  query = "ORFik_config",
  ask = interactive(),
  old_config_location = "~/Bio_data/ORFik_config.csv"
)

Arguments

cache

path to bioc cache directory with rname from query argument. Default is: BiocFileCache::getBFCOption("CACHE") For info, see: [BiocFileCache::BiocFileCache()]

query

default: "ORFik_config". Exact rname of the file in cache.

ask

logical, default interactive().

old_config_location

path, old config location before BiocFileCache implementation. Will copy this to cache directory and delete old version. This is done to follow bioc rules on not writing to user home directory.

Value

a file path in cache

Examples

config_file()
# Another config path
config_file(query = "ORFik_config_2")


Roleren/ORFik documentation built on Oct. 19, 2024, 7:37 a.m.