Skip to content

Commit

Permalink
Act on feedback from @maelle
Browse files Browse the repository at this point in the history
  • Loading branch information
jennybc committed Aug 14, 2018
1 parent 00c111e commit c33e338
Show file tree
Hide file tree
Showing 14 changed files with 35 additions and 32 deletions.
7 changes: 4 additions & 3 deletions R/package.R
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#' Depend on another package
#'
#' `use_package()` adds a CRAN package dependency to DESCRIPTION and offers a
#' little advice about how to best use it. `use_dev_package()` adds a dependency
#' on an in-development GitHub package, adding the repo to `Remotes` so it will
#' be automatically installed from the correct location.
#' little advice about how to best use it. `use_dev_package()` adds a versioned
#' dependency on an in-development GitHub package, adding the repo to `Remotes`
#' so it will be automatically installed from the correct location.
#'
#' @param package Name of package to depend on.
#' @param type Type of dependency: must be one of "Imports", "Depends",
Expand All @@ -17,6 +17,7 @@
#' \dontrun{
#' use_package("ggplot2")
#' use_package("dplyr", "suggests")
#' use_dev_package("glue")
#' }
use_package <- function(package, type = "Imports") {
types <- tolower(c("Imports", "Depends", "Suggests", "Enhances", "LinkingTo"))
Expand Down
2 changes: 1 addition & 1 deletion R/pkgdown.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#'
#' [pkgdown](https://github.com/hadley/pkgdown) makes it easy to turn your
#' package into a beautiful website. This helper creates `_pkgdown.yml`
#' and `docs/` for you, and adds to `.Rbuildignore`
#' and `docs/` for you, and adds them to `.Rbuildignore`
#'
#' @export
use_pkgdown <- function() {
Expand Down
2 changes: 1 addition & 1 deletion R/r.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Create a new R file
#' Create or edit a .R file
#'
#' @param name File name, without extension; will create if it doesn't already
#' exist. If not specified, and you're currently in a test file, will guess
Expand Down
2 changes: 1 addition & 1 deletion R/tidyverse.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Helpers for the tidyverse
#' Helpers for tidyverse development
#'
#' These helpers follow tidyverse conventions which are generally a little
#' stricter than the defaults, reflecting the need for greater rigor in
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/reference/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions docs/reference/tidyverse.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 7 additions & 6 deletions docs/reference/use_package.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/reference/use_pkgdown.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions docs/reference/use_r.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/tidyverse.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions man/use_package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/use_pkgdown.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/use_r.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 comment on commit c33e338

@maelle
Copy link
Contributor

@maelle maelle commented on c33e338 Aug 14, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😸

Please sign in to comment.