50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


loose.rock (version 1.2.0)

calculate.result: Calculate/load result and save if necessary

Description

This is where the actual work is done

Usage

calculate.result(path, compression, force.recalc, show.message, fun, ...)

Arguments

path

path to save cache

compression

compression used in save

force.recalc

force to recalculate cache

show.message

boolean to show messages

fun

function to be called

...

arguments to said function ,

Value

result of fun(...)

Examples

Run this code
# NOT RUN {
loose.rock:::calculate.result(
  file.path(tempdir(),'calculate.result.Rdata'),
  'gzip',
  FALSE,
  TRUE,
  sum,
  1, 2, 3
)
# }

Run the code above in your browser using DataLab