Determine the full path for local repo

Share:

Description

This will return the full file path of the terminal directory of a given repo type (and R version number as is appropriate).

Usage

1
full_repo_dir(repo_base, version, type = "win", ...)

Arguments

repo_base

the path of the base of the repository tree. This will have the following child folders: repo_base/bin/ and repo_base/src/. A character vector of length one.

version

the version of R that the package should be made available for. This is not relevant when type is src. A character vector of length one.

type

should be "win" (default), "mac" or src for Windows binary, Mac binary and source package distributions respectively.

...

optional arguments to pass to file.path

Value

Full path to the desired local repo's terminal directory.

References

Setting up a package repository

Examples

1
2
3
4
5
6
## Not run: 
repo_base <- file.path(".")
version <- '3.0'
full_repo_dir(repo_base, version)

## End(Not run)