Learn R Programming

managelocalrepo (version 0.1.5)

full_repo_dir: Determine the full path for local repo

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

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

Run this code
## Not run: 
# repo_base <- file.path(".")
# version <- '3.0'
# full_repo_dir(repo_base, version)
# ## End(Not run)

Run the code above in your browser using DataLab