check_figs: Check figs

View source: R/workspace.R

check_figsR Documentation

Check figs

Description

Look for matches figures in both .R scripts and .Rmd notebooks

Usage

check_figs(
  figsDir = "figs",
  scripts = list.files(pattern = "\\.R$"),
  notebooks = list.files(pattern = "\\.Rmd$"),
  fig_exts = c("pdf", "png", "jpg")
)

Arguments

figsDir

Figures directory. Use empty

scripts

character. File names of scripts to check

notebooks

character. File names of Notebooks to check

fig_exts

character. Extensions associated to figures, e.g. 'pdf', 'jpg'. Do not include a "." before the extension.

Value

data.table


AngelCampos/m.shortcuts documentation built on Feb. 25, 2024, 4:06 a.m.