Learn R Programming

gutenbergr (version 0.4.0)

gutenberg_cache_list: List files in the Gutenberg cache

Description

Provides a detailed list of files currently stored in the directory returned by gutenberg_cache_dir().

Usage

gutenberg_cache_list(verbose = TRUE)

Value

A tibble::tibble() with the following columns:

title

The title of the work.

author

The author(s) of the work.

file

The filename.

size_mb

Size of the file in megabytes.

modified

The last modification time.

path

The file's absolute path.

Arguments

verbose

Whether to show the status message showing the cache directory path.

Examples

Run this code
if (FALSE) { # interactive()
# List all works in the currently set cache
gutenberg_cache_list()

# Suppress the directory path message
gutenberg_cache_list(verbose = FALSE)
}

Run the code above in your browser using DataLab