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

Description Usage Arguments Value Examples

Description

Create directories for cache

Usage

1

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

1
2
3
4
5
6
7
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)

loose.rock documentation built on April 30, 2021, 1:06 a.m.