use_analysis: Adds an analysis directory (and sub-directories), and an qmd...

View source: R/core_use_analysis.R

use_analysisR Documentation

Adds an analysis directory (and sub-directories), and an qmd file ready to write

Description

This will create ‘paper.qmd’, ‘references.bib’ and several others.

Usage

use_analysis(
  pkg = ".",
  location = "top_level",
  template = "paper.qmd",
  data = list(),
  data_in_git = TRUE
)

Arguments

pkg

defaults to the package in the current working directory

location

the location where the directories and files will be written to. Defaults to a top-level 'analysis' directory. Other options are 'inst' (for the inst/ directory, so that all the contents will be included in the installed package) and 'vignettes' (as in a regular package vignette, all contents will be included in the installed package).

template

the template file to use to create the main analysis document. Defaults to 'paper.qmd', ready to write R Markdown and knit to MS Word

data

forwarded to whisker::whisker.render

data_in_git

should git track the files in the data directory?


benmarwick/rrtools documentation built on June 7, 2024, 8:19 p.m.