Learn R Programming

staninside (version 0.0.4)

setup_stan_package: Create Package Infrastructure for Stan Package

Description

Create directory and helper files for a Stan package using CmdStanR

Usage

setup_stan_package(loc = NULL, use_all = TRUE)

Value

invisible null

Arguments

loc

a file.path indicating package root.

use_all

a logical indicating if each section of Stan code should have it's own directory with a default of TRUE

Examples

Run this code

# Create Temporary Directory
temp_dir <- tempdir()

# Now setup the structur
setup_stan_package(loc = temp_dir)

# Examine output

list.files(temp_dir, recursive = TRUE)

Run the code above in your browser using DataLab