crunch: Cache all large values that are stored in memory

Description Usage Arguments Examples

View source: R/cache.R

Description

Cache all large values that are stored in memory

Usage

1
crunch(m)

Arguments

m

Rmonad object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
set.seed(42)
m <- as_monad(runif(1e6), tag="a") %>>%
     sqrt %>% tag("b") %>>%
     log %>% tag("c") %>>% prod(2) %>>% prod(3)
m1 <- crunch(m)
get_value(m,  1:3) %>% lapply(head)
get_value(m1, 1:3) %>% lapply(head)

## End(Not run)

arendsee/rmonad documentation built on Oct. 10, 2018, 6:26 p.m.