Skip to content

Commit b81a884

Browse files
committed
fix URLs to meet CRAN standards
1 parent 98a0328 commit b81a884

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

R/round_half_up.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#' @description
44
#' In base R \code{round()}, halves are rounded to even, e.g., 12.5 and 11.5 are both rounded to 12. This function rounds 12.5 to 13 (assuming \code{digits = 0}). Negative halves are rounded away from zero, e.g., -0.5 is rounded to -1.
55
#'
6-
#' This may skew subsequent statistical analysis of the data, but may be desirable in certain contexts. This function is implemented exactly from \url{http://stackoverflow.com/a/12688836}; see that question and comments for discussion of this issue.
6+
#' This may skew subsequent statistical analysis of the data, but may be desirable in certain contexts. This function is implemented exactly from \url{https://stackoverflow.com/a/12688836}; see that question and comments for discussion of this issue.
77
#'
88
#' @param x a numeric vector to round.
99
#' @param digits how many digits should be displayed after the decimal point?

cran-comments.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ An accumulation of small enhancements and bug fixes. No breaking changes.
88

99
#### Windows
1010
* Windows 10 with R-release 4.0.3 (local)
11-
* Windows 10 with R-devel via win-builder, 2020-12-28
11+
* Windows 10 with R Under development (unstable) (2020-12-19 r79650) via win-builder, checked 2020-12-28
1212

1313
#### Linux
1414
* ubuntu 20.04 R-release 4.0.3 (Github CI)
@@ -23,4 +23,4 @@ An accumulation of small enhancements and bug fixes. No breaking changes.
2323
### Downstream dependencies
2424
This does not negatively affect downstream dependencies.
2525

26-
I ran a revdepcheck, it succeeded for 30 of 34 packages and I manually investigated the others to verify that errors were the result of time-outs and that the janitor changes do not affect those packages.
26+
I ran a revdepcheck, it succeeded for 30 packages and I manually investigated the others to verify that errors were the result of time-outs and that the janitor changes do not affect those packages.

man/round_half_up.Rd

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

vignettes/tabyls.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ humans %>%
155155
+ **`adorn_totals()`**: Add totals row, column, or both.
156156
+ **`adorn_percentages()`**: Calculate percentages along either axis or over the entire tabyl
157157
+ **`adorn_pct_formatting()`**: Format percentage columns, controlling the number of digits to display and whether to append the `%` symbol
158-
+ **`adorn_rounding()`**: Round a data.frame of numbers (usually the result of `adorn_percentages`), either using the base R `round()` function or using janitor's `round_half_up()` to round all ties up ([thanks, StackOverflow](http://stackoverflow.com/a/12688836/4470365)).
158+
+ **`adorn_rounding()`**: Round a data.frame of numbers (usually the result of `adorn_percentages`), either using the base R `round()` function or using janitor's `round_half_up()` to round all ties up ([thanks, StackOverflow](https://stackoverflow.com/a/12688836/4470365)).
159159
+ e.g., round 10.5 up to 11, consistent with Excel's tie-breaking behavior.
160160
+ This contrasts with rounding 10.5 down to 10 as in base R's `round(10.5)`.
161161
+ `adorn_rounding()` returns columns of class `numeric`, allowing for graphing, sorting, etc. It's a less-aggressive substitute for `adorn_pct_formatting()`; these two functions should not be called together.

vignettes/tabyls.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ humans %>%
253253
result of `adorn_percentages`), either using the base R `round()`
254254
function or using janitor’s `round_half_up()` to round all ties up
255255
([thanks,
256-
StackOverflow](http://stackoverflow.com/a/12688836/4470365)).
256+
StackOverflow](https://stackoverflow.com/a/12688836/4470365)).
257257
- e.g., round 10.5 up to 11, consistent with Excel’s tie-breaking
258258
behavior.
259259
- This contrasts with rounding 10.5 down to 10 as in base R’s

0 commit comments

Comments
 (0)