Skip to content

Commit ec6b1a0

Browse files
committed
Update formatting for CRAN.
1 parent e8a5a2a commit ec6b1a0

File tree

10 files changed

+11
-40
lines changed

10 files changed

+11
-40
lines changed

DESCRIPTION

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
Package: stbl
22
Title: Stabilize Function Arguments
3-
Version: 0.1.0
4-
Authors@R:
5-
person("Jon", "Harmon", , "[email protected]", role = c("aut", "cre", "cph"),
6-
comment = c(ORCID = "0000-0003-4781-4346"))
7-
Description: A set of consistent, opinionated functions to quickly check
8-
function arguments, coerce them to the desired configuration, or deliver
9-
informative error messages when that is not possible.
3+
Version: 0.1.1
4+
Authors@R: person("Jon", "Harmon", , "[email protected]", role = c("aut", "cre", "cph"),
5+
comment = c(ORCID = "0000-0003-4781-4346"))
6+
Description: A set of consistent, opinionated functions to quickly check
7+
function arguments, coerce them to the desired configuration, or
8+
deliver informative error messages when that is not possible.
109
License: MIT + file LICENSE
1110
URL: https://github.com/jonthegeek/stbl,
1211
https://jonthegeek.github.io/stbl/
1312
BugReports: https://github.com/jonthegeek/stbl/issues
14-
Imports:
13+
Imports:
1514
cli,
1615
glue,
1716
rlang (>= 1.1.0),

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# stbl 0.1.1
2+
3+
* Formatting changes in DESCRIPTION and examples.
4+
15
# stbl 0.1.0
26

37
* Initial CRAN submission.

R/stabilize_chr.R

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,16 @@
2929
#' @export
3030
#'
3131
#' @examples
32-
#' # to_chr()
3332
#' to_chr("a")
3433
#' to_chr(letters)
3534
#' to_chr(1:10)
3635
#' to_chr(1 + 0i)
3736
#' to_chr(NULL)
3837
#' try(to_chr(NULL, allow_null = FALSE))
3938
#'
40-
#' # to_chr_scalar()
4139
#' to_chr_scalar("a")
4240
#' try(to_chr_scalar(letters))
4341
#'
44-
#' # stabilize_chr()
4542
#' stabilize_chr(letters)
4643
#' stabilize_chr(1:10)
4744
#' stabilize_chr(NULL)
@@ -51,7 +48,6 @@
5148
#' try(stabilize_chr(letters, max_size = 20))
5249
#' try(stabilize_chr(c("hide", "find", "find", "hide"), regex = "hide"))
5350
#'
54-
#' # stabilize_chr_scalar()
5551
#' stabilize_chr_scalar(TRUE)
5652
#' stabilize_chr_scalar("TRUE")
5753
#' try(stabilize_chr_scalar(c(TRUE, FALSE, TRUE)))

R/stabilize_fct.R

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,20 @@
2727
#' @export
2828
#'
2929
#' @examples
30-
#' # to_fct
3130
#' to_fct("a")
3231
#' to_fct(1:10)
3332
#' to_fct(NULL)
3433
#' try(to_fct(letters[1:5], levels = c("a", "c"), to_na = "b"))
3534
#'
36-
#' # to_fct_scalar
3735
#' to_fct_scalar("a")
3836
#' try(to_fct_scalar(letters))
3937
#'
40-
#' # stabilize_fct
4138
#' stabilize_fct(letters)
4239
#' try(stabilize_fct(NULL, allow_null = FALSE))
4340
#' try(stabilize_fct(c("a", NA), allow_na = FALSE))
4441
#' try(stabilize_fct(c("a", "b", "c"), min_size = 5))
4542
#' try(stabilize_fct(c("a", "b", "c"), max_size = 2))
4643
#'
47-
#' # stabilize_fct_scalar
4844
#' stabilize_fct_scalar("a")
4945
#' try(stabilize_fct_scalar(letters))
5046
#' try(stabilize_fct_scalar("c", levels = c("a", "b")))

R/stabilize_int.R

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
#' @export
2727
#'
2828
#' @examples
29-
#' # to_int
3029
#' to_int(1:10)
3130
#' to_int("1")
3231
#' to_int(1 + 0i)
@@ -35,11 +34,9 @@
3534
#' try(to_int("1", coerce_character = FALSE))
3635
#' try(to_int(c("1", "2", "3.1", "4", "5.2")))
3736
#'
38-
#' # to_int_scalar
3937
#' to_int_scalar("1")
4038
#' try(to_int_scalar(1:10))
4139
#'
42-
#' # stabilize_int
4340
#' stabilize_int(1:10)
4441
#' stabilize_int("1")
4542
#' stabilize_int(1 + 0i)
@@ -53,7 +50,6 @@
5350
#' try(stabilize_int(1:10, min_value = 3))
5451
#' try(stabilize_int(1:10, max_value = 7))
5552
#'
56-
#' # stabilize_int_scalar
5753
#' stabilize_int_scalar(1L)
5854
#' stabilize_int_scalar("1")
5955
#' try(stabilize_int_scalar(1:10))

R/stabilize_lgl.R

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#' @export
1717
#'
1818
#' @examples
19-
#' # to_lgl
2019
#' to_lgl(TRUE)
2120
#' to_lgl("TRUE")
2221
#' to_lgl(1:10)
@@ -25,11 +24,9 @@
2524
#' try(to_lgl(letters))
2625
#' try(to_lgl(list(TRUE)))
2726
#'
28-
#' # to_lgl_scalar
2927
#' to_lgl_scalar("TRUE")
3028
#' try(to_lgl_scalar(c(TRUE, FALSE)))
3129
#'
32-
#' # stabilize_lgl
3330
#' stabilize_lgl(c(TRUE, FALSE, TRUE))
3431
#' stabilize_lgl("true")
3532
#' stabilize_lgl(NULL)
@@ -39,7 +36,6 @@
3936
#' try(stabilize_lgl(c(TRUE, FALSE, TRUE), min_size = 5))
4037
#' try(stabilize_lgl(c(TRUE, FALSE, TRUE), max_size = 2))
4138
#'
42-
#' # stabilize_lgl_scalar
4339
#' stabilize_lgl_scalar(TRUE)
4440
#' stabilize_lgl_scalar("TRUE")
4541
#' try(stabilize_lgl_scalar(c(TRUE, FALSE, TRUE)))

man/stabilize_chr.Rd

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

man/stabilize_fct.Rd

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

man/stabilize_int.Rd

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

man/stabilize_lgl.Rd

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

0 commit comments

Comments
 (0)