make_file_links: Make file links for R Markdown

View source: R/make_file_links.R

make_file_linksR Documentation

Description

Make file links for R Markdown.

Usage

make_file_links(
  path = ".",
  pattern = NULL,
  recursive = FALSE,
  full.names = TRUE
)

Arguments

path

a character vector of full path names; the default corresponds to the working directory, getwd(). Tilde expansion (see path.expand) is performed. Missing values will be ignored. Elements with a marked encoding will be converted to the native encoding (and if that fails, considered non-existent).

pattern

an optional regular expression. Only file names which match the regular expression will be returned.

recursive

logical. Should the listing recurse into directories?

full.names

a logical value. If TRUE, the directory path is prepended to the file names to give a relative file path. If FALSE, the file names (rather than paths) are returned.

Value

Vector of file links.


jdreyf/jdcbioinfo documentation built on April 15, 2024, 6:37 p.m.