mat_88_list_pkgs: List required packages

View source: R/88_list_pkgs_stuff.R

mat_88_list_pkgsR Documentation

List required packages

Description

List required packages

Usage

mat_88_list_pkgs(scripts_file, warn_missing = TRUE, unique = TRUE)

mat_88_check_pkgs(scripts_file)

mat_88_list_paths(
  scripts_file,
  warn_missing = TRUE,
  unique = TRUE,
  dir_path = ".",
  file_ignore = NULL
)

mat_88_check_paths(
  scripts_file,
  dir_path = ".",
  file_ignore = NULL,
  unique = TRUE
)

Arguments

scripts_file

data from mat_99_run_Rfiles

warn_missing

Should (yes) show warning about missing packages?

unique

Should (yes) return only distinct packages. Otherwise returns also script name.

dir_path

additional directory

file_ignore

files to ignore. NULL

Examples

path_rscripts <- system.file("r_scripts_fake", package = "matPkg")
dir_dat <- mat_99_list_Rfiles(path_rscripts)
mat_88_list_pkgs(dir_dat)
mat_88_list_paths(dir_dat)

MatthieuStigler/matPkg documentation built on Sept. 19, 2024, 5:19 a.m.