https://github.com/2DegreesInvesting/ds-incubator/issues/26
#' Title
#'
#' @param x
#'
#' @return
#' @export
#'
#' @examples
f <- function(x) {
x
}
--
NOTE:
\@cjyetman recommended to always document explicitly the expected type of each argument to a function. \@2diiKlaus endorsed the comment and asks to do it in all packages we build. \@maurolepore would like to develop a template. Follow this discussion.
usethis::use_readme_rmd()
Gotchas:
library()
) need to be listed in DESCRIPTION.devtools::install()
).(This rigor feels annoying but helps find problems with the package structure.)
usethis::use_pkgdown()
+ pkgdown::build_site()
.Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.