Finalize your DESCRIPTION file
The DESCRIPTION
file is a crucial component of an R package as it provides essential metadata and information about the package. It serves as a central hub for describing the package's title, version, authorship, dependencies, and other key details. The DESCRIPTION
file is used for package installation, distribution, and documentation, ensuring proper identification and functioning of the package within the R ecosystem.
It stores many different useful fields for documenting information about the package including the Title
, Version
, Authors@R
, and Description
components.
Cet exercice fait partie du cours
Developing R Packages
Instructions
- Update the
Title
field to beUnit Conversion Utilities for Distance, Time, Weight, and Temperature
. - Update the
Version
field to be0.1.0
. - Update the
Authors@R
field to be"R"
as thegiven
name,"User"
as thefamily
name, nomiddle
name, and email[email protected]
. - Update the
Description
field to beThe package provides a collection of utility functions for converting distance, time, weight, and temperature values.
.
Exercice interactif pratique
Essayez cet exercice en complétant cet exemple de code.
{"DESCRIPTION.Rmd":"Package: unitConverter \nTitle: What the Package Does (One Line, Title Case) \nVersion: 0.0.0.9000 \nAuthors@R: \n person(\"First\", \"Last\", , \n \"[email protected]\", \n role = c(\"aut\", \"cre\"))\nDescription: What the package does (one paragraph). \nLicense: CC0 \nEncoding: UTF-8 \nRoxygen: list(markdown = TRUE) \nRoxygenNote: 7.2.3 \nDepends: \n R (>= 2.10) \nLazyData: true \nSuggests: \n ggplot2 (>= 3.0.0), \n tibble, \n knitr, \n rmarkdown, \n testthat (>= 3.0.0) \nVignetteBuilder: knitr \nConfig/testthat/edition: 3\n\n\n"}