-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
package-dev-modules/slides/04-package-documentation/About.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Package documentation | ||
|
||
This workshop shows you how to document your package. | ||
|
||
## Learning Objectives | ||
|
||
At the end of this module the successful learner will be able to: | ||
- recognise the different levels of package documentation: Metadata, Object documentation, Vignettes and pkgdown sites | ||
- explain, create and populate a DESCRIPTION file | ||
- know how to add package dependencies with usethis::use_package() and the difference between Imports and Suggests | ||
- explain the components of a LICENSE file | ||
- add object documentation using roxygen2 and devtools::document() | ||
- explain what a vignette is and create one with usethis::use_vignette() | ||
- know how pkgdown sites can be created | ||
|
||
|
||
## Prerequisites | ||
You need to have: | ||
- "[Packages in a nutshell](http://bit.ly/pkg-dev-1)" or equivalent experience | ||
- "[Setting up your system](http://bit.ly/pkg-dev-2)" or equivalent experience | ||
- "[Your first package]"(http://bit.ly/pkg-dev-3) or equivalent experience | ||
- the packages devtools, roxygen2, testthat and knitr installed | ||
- R build toolchain: Rtools(windows) or XCode (mac) or r-base-dev |