inst/doc/rprojtree-primer.R

## ---- include = FALSE---------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

## ----setup--------------------------------------------------------------------
library(rprojtree)

## ----example------------------------------------------------------------------
library(rprojtree)

## -----------------------------------------------------------------------------
available_templates()

## -----------------------------------------------------------------------------
print_template("basic_template")

## ---- eval = FALSE------------------------------------------------------------
#  root_path = "..." # Indicate the root directory of the structure
#  
#  # Use a builtin template
#  make_prj_tree(json_str = "basic_template", path = root_path)

## ---- eval = FALSE------------------------------------------------------------
#  # Use your own .json file
#  my_template <- ".../sample_template.json"
#  make_prj_tree(file = my_template, path = root_path)

Try the rprojtree package in your browser

Any scripts or data that you put into this service are public.

rprojtree documentation built on March 18, 2022, 7:45 p.m.