From df9ca94fc7eb51f50360d24058d750f0370a03ed Mon Sep 17 00:00:00 2001 From: hrbrmstr Date: Thu, 5 Mar 2020 12:28:56 -0500 Subject: [PATCH] cran rls mebbe --- .Rbuildignore | 1 + DESCRIPTION | 4 ++-- R/ft.R | 1 - R/ipsum-pdf.R | 1 - R/modern.r | 1 - R/scales.r | 4 ++++ man/scale_x_percent.Rd | 6 ++++++ 7 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.Rbuildignore b/.Rbuildignore index 99bf696..5445921 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -1,3 +1,4 @@ +^\.github ^CRAN-RELEASE$ ^.*\.Rproj$ ^\.Rproj\.user$ diff --git a/DESCRIPTION b/DESCRIPTION index 95631c6..79403e5 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -2,7 +2,7 @@ Package: hrbrthemes Type: Package Title: Additional Themes, Theme Components and Utilities for 'ggplot2' Version: 0.8.0 -Date: 2020-02-25 +Date: 2020-03-05 Authors@R: c( person("Bob", "Rudis", email = "bob@rud.is", role = c("aut", "cre"), comment = c(ORCID = "0000-0001-5670-2640")), @@ -44,7 +44,7 @@ Suggests: vdiffr, svglite Depends: - R (>= 3.2.0) + R (>= 3.4.0) Imports: ggplot2 (>= 3.3.0), grDevices, diff --git a/R/ft.R b/R/ft.R index 7f23b99..677fd7c 100644 --- a/R/ft.R +++ b/R/ft.R @@ -21,7 +21,6 @@ white = "#ffffff" #' @export ft_text_col <- "#929299" -#' @inheritParams hrbrthemes::theme_ipsum_rc #' @rdname theme_ipsum_rc #' @export theme_ft_rc <- function (base_family = "Roboto Condensed", base_size = 11.5, diff --git a/R/ipsum-pdf.R b/R/ipsum-pdf.R index d6195cd..588fbbc 100644 --- a/R/ipsum-pdf.R +++ b/R/ipsum-pdf.R @@ -2,7 +2,6 @@ #' #' Template for creating an R markdown documents with an emphasis on typography #' -#' @inheritParams rmarkdown::pdf_document #' @param ... Arguments to \code{rmarkdown::pdf_document} #' #' @return R Markdown output format to pass to \code{\link[rmarkdown:render]{render}} diff --git a/R/modern.r b/R/modern.r index c602b81..8058205 100644 --- a/R/modern.r +++ b/R/modern.r @@ -1,4 +1,3 @@ -#' @inheritParams hrbrthemes::theme_ipsum_rc #' @rdname theme_ipsum_rc #' @export theme_modern_rc <- function (base_family = "Roboto Condensed", base_size = 11.5, diff --git a/R/scales.r b/R/scales.r index 5e91162..5cd399f 100644 --- a/R/scales.r +++ b/R/scales.r @@ -27,6 +27,10 @@ is.formula <- function (x) { inherits(x, "formula") } #' each major break) #' - A numeric vector of positions #' - A function that given the limits returns a vector of minor breaks. +#' @param guide guide A function used to create a guide or its name. See [guides()] for more information. +#' @param n.breaks An integer guiding the number of major breaks. The algorithm may choose a +#' slightly different number to ensure nice break labels. Will only have an effect if +#' `breaks = waiver()`. Use NULL to use the default number of breaks given by the transformation. #' @param labels Specifying overrides the default format (i.e. you really don't #' want to do that). `NULL` means no labels. #' @param limits A numeric vector of length two providing limits of the scale. diff --git a/man/scale_x_percent.Rd b/man/scale_x_percent.Rd index 4959a1a..0682224 100644 --- a/man/scale_x_percent.Rd +++ b/man/scale_x_percent.Rd @@ -128,6 +128,12 @@ each major break) \item A function that given the limits returns a vector of minor breaks. }} +\item{guide}{guide A function used to create a guide or its name. See \code{\link[=guides]{guides()}} for more information.} + +\item{n.breaks}{An integer guiding the number of major breaks. The algorithm may choose a +slightly different number to ensure nice break labels. Will only have an effect if +\code{breaks = waiver()}. Use NULL to use the default number of breaks given by the transformation.} + \item{labels}{Specifying overrides the default format (i.e. you really don't want to do that). \code{NULL} means no labels.}