add_notebook: Add notebook to analysis

View source: R/make_notebooks.R

add_notebookR Documentation

Add notebook to analysis

Description

Add notebook to analysis

Usage

add_notebook(
  analysis,
  notebook_file,
  products = character(0),
  dependencies = list(),
  params = list(),
  notebook_name = fs::path_sanitize(fs::path_ext_remove(notebook_file))
)

Arguments

analysis

analysis object

notebook_file

file path of the notebook to add to analysis (relative to analysis$notebook_dir)

products

(named) character vector specifying file paths of side products of the notebook, they are available as parameters to subsequent notebooks by their name

dependencies

either a named list of character vectors or a named character vector specifying file paths of files required by the notebook. Dependencies matching parameters will be used as such

params

named list of parameters to supply to the notebook

notebook_name

character string to use as name of the notebook under which its out_dir will available as parameter to subsequent notebooks


jan-glx/analysismaker documentation built on March 29, 2025, 11:58 a.m.