mat_88_list_pkgs: List required packages

Description Usage Arguments Examples

View source: R/88_list_pkgs_stuff.R

Description

List required packages

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
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

1
2
3
4
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 Aug. 10, 2021, 11:01 a.m.