Rxiv: Archive function for auxiliary files for latex documents

View source: R/Rxiv.R

RxivR Documentation

Archive function for auxiliary files for latex documents

Description

Creates a tar.gz file with all of the R files needed to recreate the tables and figures that appear in the paper. Should be considered experimental at this stage. It presumes that tables are generated with something like the Hmisc latex function and included in the latex document with input commands. Likewise figures are assumed to be included with includegraphics and generated by R in pdf format. This was originally developed to sort out the files for "Empirical Bayesball Remixed". An optional side of effect of the function to create a tar.gz file with the gzipped R files required for the paper.

Usage

Rxiv(fname, figures = "figures", tables = "tables", tar = FALSE)

Arguments

fname

name of the latex file of the paper sans .tex suffix

figures

name of the directory with the files for figures

tables

name of the directory with the files for tables

tar

logical flag, if TRUE generate a gzipped tar file of .R files

Value

a list with the following components

Rtables

a character array with two columns: .tex files and .R files

Rfigures

a character array with two columns: .pdf files and .R files

Rother

a character vector with other R files required.

Rcached

a character vector with cached Rda files

Author(s)

R. Koenker


REBayes documentation built on Aug. 19, 2023, 5:10 p.m.