cached: cached

Description Usage Arguments Details Examples

View source: R/cached.R

Description

subclass for working with cached objects: path, dir, file, name, ext, etc.

Usage

1
2
3
4
5
6
7
cached(x, ...)

## Default S3 method:
cached(x, ...)

## S3 method for class 'cached'
print(x, ...)

Arguments

x

object to subclass

Details

These are essentially used for providing special methods for cache objects vs their fs counterparts.

The biggest difference is cached ext vs a fs extension

Examples

1
2
  x <- path('cache') %>% cached()
  print(x)   # A cache path(s) at:

decisionpatterns/cache documentation built on June 15, 2020, 9:35 p.m.