Skip to content

Commit

Permalink
* The collapse and glue functions from the **glue** package are r…
Browse files Browse the repository at this point in the history
…eexported

  for easy string manipulation.
  • Loading branch information
Tyler Rinker committed Jan 18, 2018
1 parent a848f29 commit f004286
Show file tree
Hide file tree
Showing 6 changed files with 78 additions and 7 deletions.
50 changes: 43 additions & 7 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,52 @@ Title: Tools to Format Numbers for Publication
Version: 0.4.2
Authors@R: c(person("Tyler", "Rinker", email = "tyler.rinker@gmail.com", role = c("aut", "cre")))
Maintainer: Tyler Rinker <tyler.rinker@gmail.com>
Description: Format numbers and plots for publication; includes the removal of leading zeros, standardization of number of digits, addition of affixes, and a p-value formatter. These tools
combine the functionality of several 'base' functions such as 'paste()', 'format()', and 'sprintf()' into specific use case functions that are named in a way that is
consistent with usage, making their names easy to remember and easy to deploy.
Description: Format numbers and plots for publication; includes the removal of leading zeros, standardization of number
of digits, addition of affixes, and a p-value formatter. These tools combine the functionality of several
'base' functions such as 'paste()', 'format()', and 'sprintf()' into specific use case functions that are
named in a way that is consistent with usage, making their names easy to remember and easy to deploy.
Depends: R (>= 3.2.0)
Suggests: testthat
Date: 2018-01-03
Imports: glue
Date: 2018-01-18
License: GPL-2
LazyData: TRUE
Roxygen: list(wrap = FALSE)
RoxygenNote: 6.0.1
Collate: 'alignment.R' 'as_factor.R' 'constants.R' 'f_12_hour.R' 'utils.R' 'f_abbreviation.R' 'f_affirm.R' 'f_affix.R' 'f_comma.R' 'f_date.R' 'f_degree.R' 'f_denom.R' 'f_dollar.R' 'f_logical.R'
'f_month.R' 'f_num.R' 'f_ordinal.R' 'f_pad_zero.R' 'f_parenthesis.R' 'f_percent.R' 'f_pval.R' 'f_quarter.R' 'f_replace.R' 'f_sign.R' 'f_state.R' 'f_title.R' 'f_weekday.R'
'f_wrap.R' 'f_year.R' 'fv_num_percent.R' 'fv_percent.R' 'fv_percent_diff.R' 'fv_runs.R' 'highlight_cells.R' 'numform-package.R'
Collate:
'alignment.R'
'as_factor.R'
'constants.R'
'f_12_hour.R'
'utils.R'
'f_abbreviation.R'
'f_affirm.R'
'f_affix.R'
'f_comma.R'
'f_date.R'
'f_degree.R'
'f_denom.R'
'f_dollar.R'
'f_logical.R'
'f_month.R'
'f_num.R'
'f_ordinal.R'
'f_pad_zero.R'
'f_parenthesis.R'
'f_percent.R'
'f_pval.R'
'f_quarter.R'
'f_replace.R'
'f_sign.R'
'f_state.R'
'f_title.R'
'f_weekday.R'
'f_wrap.R'
'f_year.R'
'fv_num_percent.R'
'fv_percent.R'
'fv_percent_diff.R'
'fv_runs.R'
'glue-reexports.R'
'highlight_cells.R'
'numform-package.R'
4 changes: 4 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ S3method(f_year,hms)
S3method(f_year,numeric)
export(alignment)
export(as_factor)
export(collapse)
export(constant_months)
export(constant_months_abbreviation)
export(constant_quarters)
Expand Down Expand Up @@ -112,4 +113,7 @@ export(fv_num_percent)
export(fv_percent)
export(fv_percent_diff)
export(fv_runs)
export(glue)
export(highlight_cells)
importFrom(glue,collapse)
importFrom(glue,glue)
3 changes: 3 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ NEW FEATURES

* `highlight_cells` added as a quick and dirty way to add cell font highlighting.

* The `collapse` and `glue` functions from the **glue** package are reexported
for easy string manipulation.

MINOR FEATURES

* `f_denom` family of functions picks up a `less.than.replace` argument to
Expand Down
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ numform 0.4.1 -

* `highlight_cells` added as a quick and dirty way to add cell font highlighting.

* The `collapse` and `glue` functions from the **glue** package are reexported
for easy string manipulation.

**MINOR FEATURES**

* `f_denom` family of functions picks up a `less.than.replace` argument to
Expand Down
7 changes: 7 additions & 0 deletions R/glue-reexports.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#' @importFrom glue glue
#' @export
glue::glue

#' @importFrom glue collapse
#' @export
glue::collapse
18 changes: 18 additions & 0 deletions man/reexports.Rd

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

0 comments on commit f004286

Please sign in to comment.