generate_article: Generate Article Carmona & Nicholls (2020)

Description Usage Arguments Value

View source: R/generate_article.R

Description

1
2
This function reproduce the article ``Semi-Modular Inference: enhanced learning in multi-modular models by tempering the influence of components''.
The function copies an internal .Rnw file to the specified output folder, and then compiles it using the knitr package.

Usage

1
2
3
4
5
6
7
generate_article(
  out_dir = ".",
  compute_mcmc = FALSE,
  mcmc_dir = NULL,
  compile_path = NULL,
  pkg_dir = system.file(package = "aistats2020smi")
)

Arguments

out_dir

Output directory where the pdf and auxiliary latex files will be stored

compute_mcmc

Indicates if the MCMC must be recomputed. If TRUE, the computation time can be in the order of several hours.

mcmc_dir

Directory containing the required files with MCMC results.

compile_path

Directory where the article is compiled and all auxiliary files are saved into. If NULL, a temporary directory is used.

pkg_dir

Internal directory where the package is installed. Used to retrieve the master Rnw file.

Value

The function will generate a pdf corresponding to the statistical supplement of Styring et al. (2020)


christianu7/aistats2020smi documentation built on March 7, 2021, 2:40 p.m.