Learn R Programming

ggfigdone (version 0.1.2)

fd_load: Load the ggfigdone database

Description

This function loads the ggfigdone database from the disk.

Usage

fd_load(dir, auto_database_upgrade = TRUE, set_default = TRUE)

Value

An object of class fdObj.

Arguments

dir

A character string representing the directory path.

auto_database_upgrade

A logical value. If TRUE, the function will automatically upgrade the database to the latest version. If FALSE, you need to manually save the data using the fd_save function.

set_default

A logical value. If TRUE, the function will set the database as the default database.

Examples

Run this code
library(ggplot2)
## create ggfigdone database in a temporary directory
db_dir = file.path(tempdir(), "fd_load")
fd_init(db_dir, rm_exist = TRUE)

## Load the ggfigdone database
fd_load(db_dir)

Run the code above in your browser using DataLab