drake (version 7.3.0)

drake_cache_log_file: Deprecated. Generate a flat text log file to represent the state of the cache.

Description

Deprecated on 2019-03-09.

Usage

drake_cache_log_file(file = "drake_cache.log", path = getwd(),
  search = TRUE, cache = drake::get_cache(path = path, search = search,
  verbose = verbose), verbose = 1L, jobs = 1L, targets_only = FALSE)

Arguments

file

character scalar, name of the flat text log file.

path

Root directory of the drake project, or if search is TRUE, either the project root or a subdirectory of the project. Ignored if a cache is supplied.

search

Logical. If TRUE, search parent directories to find the nearest drake cache. Otherwise, look in the current working directory only. Ignored if a cache is supplied.

cache

drake cache. See new_cache(). If supplied, path and search are ignored.

verbose

Integer, control printing to the console/terminal.

  • 0: print nothing.

  • 1: print targets, retries, and failures.

  • 2: also show a spinner when preprocessing tasks are underway.

jobs

Number of jobs/workers for parallel processing.

targets_only

Logical, whether to output information only on the targets in your workflow plan data frame. If targets_only is FALSE, the output will include the hashes of both targets and imports.

Value

There is no return value, but a log file is generated.

Details

Calling this function to create a log file and later calling make() makes the log file out of date. Therefore, we recommend using make() with the cache_log_file argument to create the cache log. This way ensures that the log is always up to date with make() results.

See Also

drake_cache_log(), make(), get_cache()

Examples

Run this code
# NOT RUN {
# Deprecated
# }

Run the code above in your browser using DataCamp Workspace