st_files: Add file name information to st object

View source: R/table-object.R

st_filesR Documentation

Add file name information to st object

Description

See the r_file and output_file arguments passed to stable() and then to tab_notes().

Usage

st_files(
  x,
  r = getOption("mrg.script", NULL),
  output = NULL,
  output_dir = getOption("pmtables.dir"),
  path.type = NULL,
  esc = NULL
)

Arguments

x

an stobject.

r

set r_file, passed to stable().

output

set output_file, the .tex file containing rendered table code; this may be the base file name or the full path to the file; passed to stable().

output_dir

directory for output_file; this will be overridden with a warning if output_file contains the full path to the file.

path.type

whether to include the path to the output file in the table notes and how to format it; options include "none", "proj", and "raw"; see format_table_path().

esc

passed to tab_escape(); use NULL to bypass escaping.

Examples

library(dplyr)

ob <- st_new(ptdata())

ob %>% st_files(r = "foo.R", output = "foo.tex") %>% stable()


metrumresearchgroup/pmtables documentation built on Dec. 22, 2024, 1:34 a.m.