Skip to content

Commit c33e338

Browse files
committed
Act on feedback from @maelle
1 parent 00c111e commit c33e338

File tree

14 files changed

+35
-32
lines changed

14 files changed

+35
-32
lines changed

β€ŽR/package.Rβ€Ž

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#' Depend on another package
22
#'
33
#' `use_package()` adds a CRAN package dependency to DESCRIPTION and offers a
4-
#' little advice about how to best use it. `use_dev_package()` adds a dependency
5-
#' on an in-development GitHub package, adding the repo to `Remotes` so it will
6-
#' be automatically installed from the correct location.
4+
#' little advice about how to best use it. `use_dev_package()` adds a versioned
5+
#' dependency on an in-development GitHub package, adding the repo to `Remotes`
6+
#' so it will be automatically installed from the correct location.
77
#'
88
#' @param package Name of package to depend on.
99
#' @param type Type of dependency: must be one of "Imports", "Depends",
@@ -17,6 +17,7 @@
1717
#' \dontrun{
1818
#' use_package("ggplot2")
1919
#' use_package("dplyr", "suggests")
20+
#' use_dev_package("glue")
2021
#' }
2122
use_package <- function(package, type = "Imports") {
2223
types <- tolower(c("Imports", "Depends", "Suggests", "Enhances", "LinkingTo"))

β€ŽR/pkgdown.Rβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#'
33
#' [pkgdown](https://github.com/hadley/pkgdown) makes it easy to turn your
44
#' package into a beautiful website. This helper creates `_pkgdown.yml`
5-
#' and `docs/` for you, and adds to `.Rbuildignore`
5+
#' and `docs/` for you, and adds them to `.Rbuildignore`
66
#'
77
#' @export
88
use_pkgdown <- function() {

β€ŽR/r.Rβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#' Create a new R file
1+
#' Create or edit a .R file
22
#'
33
#' @param name File name, without extension; will create if it doesn't already
44
#' exist. If not specified, and you're currently in a test file, will guess

β€ŽR/tidyverse.Rβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#' Helpers for the tidyverse
1+
#' Helpers for tidyverse development
22
#'
33
#' These helpers follow tidyverse conventions which are generally a little
44
#' stricter than the defaults, reflecting the need for greater rigor in

β€Ždocs/index.htmlβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Ždocs/reference/index.htmlβ€Ž

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Ždocs/reference/tidyverse.htmlβ€Ž

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Ždocs/reference/use_package.htmlβ€Ž

Lines changed: 7 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Ždocs/reference/use_pkgdown.htmlβ€Ž

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Ždocs/reference/use_r.htmlβ€Ž

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
Β (0)