create_sim: Create a simulation project

View source: R/init-dir.R

create_simR Documentation

Create a simulation project

Description

create_sim() initializes a directory for your simulation study. It wraps around usethis::create_project(), as well as usethis::use_git() and renv::init().

Usage

create_sim(path, init_git = TRUE, init_renv = FALSE, tests = TRUE, hpc = FALSE)

Arguments

path

A character specifying the path for your simulation directory.

init_git

A logical indicating whether to intialize your simulation directory as a git repository.

init_renv

A logical stating whether to initialize renv with renv::init(). Defaults to FALSE.

tests

A logical indicating whether to generate sub-directories for organizing unit tests. Defaults to TRUE.

hpc

A logical indicating whether to create sub-directories for organizing files related to high-power computing environments. Defaults to FALSE.

Examples

## Not run: 
# create template directory for simulation project
create_sim("path/to/sim")
## End(Not run)


Yu-Group/simChef documentation built on March 25, 2024, 3:22 a.m.