View source: R/create_version_number.R
create_version_number | R Documentation |
Creates a version number from either a date and a version
or a date and major and patch
or major minor patch.
If no parameters are supplied a default version is returned
0.1.0
This function prioritizes download date and version over all other parameters
create_version_number(
download_date = NULL,
version = NULL,
major = 0,
minor = "1",
patch = 0
)
download_date |
(Optional) download_date
This can either be a date or datetime
but must include the full year
e.g from
|
version |
version number using major.minor.patch numbering
e.g. |
major |
major number if not using |
minor |
minor number if not using |
patch |
patch number if not using |
returns a character vector in the format of major.minor.patch
e.g. 0.20200101.0
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.