create_folder {chkptstanr}R Documentation

Create Folder for Checkpointing

Description

Create the folder for checkingpointing, which will "house" additional folders for the .stan model, checkpointing information, and draws from the posterior distribution.

Usage

create_folder(folder_name = "cp_folder", path = NULL)

Arguments

folder_name

Character string. Desired name for the "parent" folder (defaults to checkpoint).

path

Character string, when specified. Defaults to NULL, which then makes the folder in the working directory.

Value

No return value, and instead creates a directory with folders that will contain the checkpointing samples and other information.

Note

This creates a directory with four folders:

Examples

path <- create_folder(folder_name = "cp_folder")

# remove folder
unlink("cp_folder", recursive = TRUE)

[Package chkptstanr version 0.1.1 Index]