Learn R Programming

switchr (version 0.14.8)

makePkgDir: makePkgDir

Description

This is an internal function not intended to be called directly by end users

Usage

makePkgDir(
  name,
  source,
  path,
  latest_only,
  param = SwitchrParam(),
  forceRefresh = FALSE
)

# S4 method for ANY,SVNSource makePkgDir( name, source, path, latest_only = FALSE, param = SwitchrParam(), forceRefresh = FALSE )

# S4 method for ANY,GithubSource makePkgDir( name, source, path, latest_only = FALSE, param = SwitchrParam(), forceRefresh = FALSE )

# S4 method for ANY,GitSource makePkgDir( name, source, path, latest_only = FALSE, param = SwitchrParam(), forceRefresh = FALSE )

# S4 method for ANY,ANY makePkgDir( name, source, path, latest_only, param = SwitchrParam(), forceRefresh = FALSE )

# S4 method for ANY,CRANSource makePkgDir( name, source, path, latest_only, param = SwitchrParam(), forceRefresh = FALSE )

# S4 method for ANY,BiocSource makePkgDir( name, source, path, latest_only, param = SwitchrParam(), forceRefresh = FALSE )

# S4 method for ANY,TarballSource makePkgDir( name, source, path, latest_only, param = SwitchrParam(), forceRefresh = FALSE )

# S4 method for ANY,LocalSource makePkgDir( name, source, path, latest_only, param = SwitchrParam(), forceRefresh = FALSE )

Value

logical scalar indicating success (TRUE) or failure of the operation.

Arguments

name

The package

source

A PkgSource

path

The path to place the directory

latest_only

Should a fastpath for downloading the latest commit in a SCM package without a formal checkout be used?

param

A SwitchrParam

forceRefresh

Should an existing instance of the package source be deleted/refreshed

Details

Create a directory and populate it with package source code from the specified source