Learn R Programming

loose.rock (version 1.2.0)

create.directory.for.cache: 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

Run this code
# NOT RUN {
loose.rock:::create.directory.for.cache(tempdir(), 'abcd')
# }
# NOT RUN {
  loose.rock:::create.directory.for.cache(
    file.path(getwd(), 'run-cache'), 'abcd'
  )
# }

Run the code above in your browser using DataLab