info_scripts: List information about scripts

Description Usage Arguments Examples

View source: R/code_library.R

Description

List information about scripts

Usage

1
2
3
4
5
6
7
8
info_scripts(
  files,
  fields = c("Description"),
  viewer = TRUE,
  silent = FALSE,
  base_dirs = NULL,
  shorten_paths = TRUE
)

Arguments

files

vector string of file names/paths

fields

vector string of field tags to display

viewer

logical indicating if Rstudio viewer should be used (default = TRUE)

silent

run in quiet mode (default=FALSE)

base_dirs

character vector. group files together that belong to these directory paths

shorten_paths

logical. Default = TRUE. Long paths will be shortened if true in displayed output (not returned object)

Examples

1
2
3
4
5
6
## Not run: 
ls_scripts('~/AZD6094/PK_liver4/') %>%
  info_scripts('Description') %>%
  filter(grepl('mod',DESCRIPTION))

## End(Not run)

tsahota/TidyProject documentation built on April 19, 2021, 9:14 p.m.