add_hash_to_file: Create a string of the filename with its hash as an attribute...

View source: R/add_hash_to_file.R

add_hash_to_fileR Documentation

Create a string of the filename with its hash as an attribute to allow change detection in drake

Description

Create a string of the filename with its hash as an attribute to allow change detection in drake

Usage

add_hash_to_file(filename)

Arguments

filename

The filename or vector of filenames to generate a hash for

Value

'filename' with an attribute of 'hash' added.

Examples

## Not run: 
my_plan <-
  drake_plan(
    big_filename=
      target(
        command=add_hash_to_file("a/file.xpt"),
        trigger=trigger(condition=TRUE)
      )
  )

## End(Not run)

billdenney/bsd.report documentation built on Jan. 16, 2024, 12:54 a.m.