Learn R Programming

NoviceDeveloperResources (version 1.1.0)

checkBuildInstallSourcePackage: checkBuildInstallSourcePackage

Description

check, build, and install local source package

Usage

checkBuildInstallSourcePackage(dir, packs, packCheck, autoLibrary = FALSE)

Value

returns a character string that can be printed using "echo" and then copy and paste by the user to load or update the packages

Arguments

dir

character string containing the path name of the directory holding the package folders

packs

character vector of the names of the packages

packCheck

character vector of the names of the packages to check()

autoLibrary

Boolean if TRUE automate library() command altering search path

Details

I wanted to include "library(packs)" in the program, but this is not allowed. The user can "cat" the return value and copy and paste to facilitate doing this manually.