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)

rmonad documentation built on March 26, 2020, 7:31 p.m.