scaffold: Scaffold directories

View source: R/scaffold.R

scaffoldR Documentation

Scaffold directories

Description

Similar to packer::scaffold_widget() but replace javascript with typescript, yarn with pnpm and webpack with esbuild

Usage

scaffold(
  dir,
  path,
  rstudio = rstudioapi::isAvailable(),
  open = rlang::is_interactive(),
  is_package = FALSE
)

scaffold_widget(...)

scaffold_quarto_book(...)

scaffold_bookdown_book(...)

Arguments

dir

directory to copy, relative to to inst/

path

project path

rstudio

if rstudio is available

open

if rstudio is open

Value

the new project path

Examples

## Not run: 
scaffold_widget("~/mywidget")

## End(Not run)

enixam/ymisc documentation built on Nov. 22, 2022, 1:31 a.m.