getReferences: Pull references from a "DataRec" folder

View source: R/getReferences.R

getReferencesR Documentation

Pull references from a "DataRec" folder

Description

Get a list of all the pdf, Word, Excel, PowerPoint, Simcyp Simulator workspace, XML, jpg, png, or text files in, e.g., the "DataRec" folder and subfolder. Can be useful for the bibliography section of a report.

Usage

getReferences(main_directory = ".", print_filenames = FALSE, save_output = NA)

Arguments

main_directory

the main directory from which you want a list of all the files, in quotes; default assumes the main directory is your current working directory

save_output

optionally save the output by supplying a file name in quotes here, e.g., "My references.csv". If you leave off ".csv", it will still be saved as a csv file.

Value

A data.frame containing columns "Directory" for the directory and, where applicable, the subdirectory of a file, and "File" for the file name. Optionally save output to a csv file.

Examples

getReferences()
getReferences(save_output = "My referencs.csv")



shirewoman2/Consultancy documentation built on Feb. 18, 2025, 10 p.m.