Developing R Packages
Jasmin Ludolf
Content Developer
Example: tidyr
1.3.0
<major>.<minor>.<patch>.<dev>
0.0.0.9000
9000
: package in developmentFormat: <major>.<minor>.<patch>.<dev>
dev
: rarely changed, remove for releasepatch
: changed for bug fixesminor
: small additional functionality added to package before initial releasepatch
number reset to 0
major
: package considered stable to release1.5.3
to 2.0.0
: old code could break
0.0.0.9000
-> 0.0.0
0.0.1
0.0.2
0.1.0
1.0.0
2.0.0
Package: unitConverter Title: What the Package Does (One Line, Title Case)
Version: 0.0.0.9000
Authors@R: person("First", "Last", , "[email protected]", role = c("aut", "cre"), comment = c(ORCID = "YOUR-ORCID-ID"))
Description: What the package does (one paragraph).
Package: unitConverter Title: Unit Conversion Utilities for Distance, Time, Weight, and Temperature
Version: 0.1.0
Authors@R: person("Jasmin", "Ludolf", , "[email protected]", role = c("aut", "cre"))
Description: The `unitConverter` package provides a collection of utility functions for converting distance, time, weight, and temperature values. It offers seamless conversion between various units within each category, allowing users to easily transform measurement data.
use_r("temperature_data")
Edit R/temperature_data.R
:
#' Temperature values and units #'
#' Temperature values and corresponding unit (Celsius, Fahrenheit, or Kelvin)
#' @format Data frame with two columns and 1000 rows
#' \describe{ #' \item{value}{Numeric temperature value.} #' \item{unit}{Temperature unit.} #' }
#' @examples #' temperature_data
"temperature_data"
roxygenize()
devtools::check()
DESCRIPTION
information is correctDeveloping R Packages