versioning: Functions for versioning of packages

Description Usage Arguments

Description

Performs functions surrounding versioning within packages.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
Get_Version(dir = ".")

Set_Version(dir = ".", Version)

Add_Version(Version, type)

Update_Version(dir = ".", type = "dev")

Check_Version(Version)

Match_Version_Github(
  user = NULL,
  repo = NULL,
  ref = "main",
  git_dir = NULL,
  dir = "."
)

Arguments

dir

directory containing the DESCRIPTION file. Can also be a web address, such as a github repo

Version

an appropriate vector for version numbers. Must be of length 4 and the elements mst be named "major", "minor", "patch" and "dev", respectively

type

accepts "major", "minor", "patch", "dev" or "none" to describe what kind of update to perform. whichever type is supplied will be the level that is incremented. All lower levels will be reset to 0 (or 9000 for dev).

user

username for Github lookup

repo

repository for Github lookup. If NULL, will extract the package name from the DESCRIPTION file

ref

the branch to use as a lookup. Defaults to "master"

git_dir

directory for the github repo. Can be found by using


MyKo101/mutils documentation built on July 28, 2020, 8:52 p.m.