libraryFinder: examines all the R files within a folder that have been...

libraryFinderR Documentation

examines all the R files within a folder that have been modified within a certain date and returns a list of all the libraries to install.

Description

It'll check for all files that start with '.R', so '.Rmd' etc are included.

Usage

libraryFinder(parentFolder, howLong = 365, whatLib = .libPaths()[1])

Arguments

parentFolder

what folder contains all the repos that contain the files to check

howLong

specifies which files should be checked, by filtering to files only within 'howLong' days ago, Default: 365

whatLib

what folder would you like to install these libraries into? It's wise to install these in a new folder if you are upgrading to a new version of R, Default: .libPaths()[1]

Details

For now the script is super naive, the next thing it can do is identify the package dependencies and do a bit of a smarter install order.

Value

It spits out to console a command that you can copypaste to install all the CRAN libraries, as well as listing all the non-CRAN libraries it found.

Examples

## Not run: 
if(interactive()){
 #EXAMPLE1
 }

## End(Not run)

DataStrategist/amitFuncs documentation built on June 4, 2022, 10:01 a.m.