Save function results to file and load on subsequent calls to avoid repeat computation.

precomp(file, fun, ...)

Arguments

file

file name to write the results.

fun

function to run.

...

arguments to be passed to fun.