assign-check-sha1: Assign read in data with creating/checking SHA1 sum

Description Usage Arguments Examples

Description

This infix function creates a normal assignment as side effect, but also checks the read in data against a previously cached SHA1 sum (if available), or creates the SHA1 sum in the first place. When SHA1 sums differ, a warning will be issued.

Usage

1
x %<c-% value

Arguments

x

unquoted expression naming variable to create

value

unquoted expression to evaluate the first time name is accessed

Examples

1
2
3
4
## Not run: 
x %<c-% read.csv("some_file.csv")

## End(Not run)

cszang/fridge documentation built on May 14, 2019, 12:26 p.m.