create.directory.for.cache: Create directories for cache

create.directory.for.cacheR Documentation

Create directories for cache

Description

Create directories for cache

Usage

create.directory.for.cache(base.dir, parent.path)

Arguments

base.dir

tentative base dir to create.

parent.path

first 4 characters of digest that will become parent directory for the actual cache file (this reduces number of files per folder)

Value

a list of updated base.dir and parent.dir

Examples

loose.rock:::create.directory.for.cache(tempdir(), 'abcd')
## Not run: 
  loose.rock:::create.directory.for.cache(
    file.path(getwd(), 'run-cache'), 'abcd'
  )

## End(Not run)

averissimo/loose.rock documentation built on Dec. 8, 2022, 11:53 p.m.