Skip to contents

Applies a decorator returned by cacheFile() to a function.

Usage

decorator %@% f

# Default S3 method
decorator %@% f

# S3 method for class 'decorator'
decorator %@% f

Arguments

decorator

A decorator object, such as that returned by cacheFile().

f

A function to decorate.

Value

A new function with caching behavior.