cached_name: Name for cached object

Description Usage Arguments Details Value See Also Examples

View source: R/cached_name.R

Description

User-friendly object name. It doesn't contain either path or ext information

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
cached_name(x)

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

as_cached_name(x = NULL)

## S3 method for class 'character'
as_cached_name(x)

## S3 method for class 'fs_path'
as_cached_name(x)

Arguments

...

additional arguments

Details

as_cached_name.fs_path handles cached_file and cached_path objects

Value

a cached_name object

See Also

Examples

1
2
3
4
5
6
7
8
9
  cached_name('iris')

  as_cached_name('iris')
  as_cached_name(iris)

  as_cached_file("iris.rds") %>% as_cached_name()

  cached_file("iris.rds") %>% as_cached_name()
  cached_path("iris.2.rds") %>% as_cached_name()

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