Skip to content

Commit aa6b6a2

Browse files
committed
pkgdown changes
1 parent 1c9978a commit aa6b6a2

10 files changed

Lines changed: 81 additions & 64 deletions

R/deprecate-if_not.r

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ abort_dispatch <- function(..., .fn, .message, .error_call, .caller_fn) {
261261
#' x <- y <- 1L
262262
#' cast_if_not(x = double(), y = character()) |> try()
263263
#' class(x) # integer
264+
#' @keywords internal
264265
#' @export
265266
cast_if_not <- function(
266267
...,
@@ -436,6 +437,7 @@ cast_if_not <- function(
436437
#' x <- y <- 1L
437438
#' recycle_if_not(x = 5, y = -5) |> try()
438439
#' length(x) # 1
440+
#' @keywords internal
439441
#' @export
440442
recycle_if_not <- function(
441443
...,

R/favr-package.r

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#' @import vctrs
44
#' @import tidyselect
55
#' @import lifecycle
6+
#' @keywords internal
67
"_PACKAGE"
78

89
on_load(

R/modifiers.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#' Modify behaviour of check functions
1+
#' Modify the behaviour of type checking functions
22
#'
33
#' @description
44
#' Modify the type-checking, or length-checking behaviour of [favr]

README.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ knitr::opts_chunk$set(
1313
)
1414
```
1515

16-
# favr <img id="logo" src="man/figures/logo.png" align="right" height="250" />
16+
# favr <img id="logo" src="man/figures/logo.png" align="right" height="250" style="float:right; height:250px" />
1717

1818
<!-- badges: start -->
1919
[![CRAN status](https://www.r-pkg.org/badges/version/favr)](https://CRAN.R-project.org/package=favr)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
<!-- README.md is generated from README.Rmd. Please edit that file -->
33

4-
# favr <img id="logo" src="man/figures/logo.png" align="right" height="250" />
4+
# favr <img id="logo" src="man/figures/logo.png" align="right" height="250" style="float:right; height:250px" />
55

66
<!-- badges: start -->
77

_pkgdown.yml

Lines changed: 71 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -4,77 +4,88 @@ template:
44

55
reference:
66

7-
- title: Function Argument Validation
7+
- title: General validation
88
desc: >
9-
Tools for validation and safe casting and recycling.
9+
Tools for general validation depending on input.
1010
contents:
11-
- abort_if_not
12-
- cast_if_not
13-
- recycle_if_not
14-
- enforce
15-
- schema
11+
- abortifnot
12+
- abortif
13+
- check
14+
- check_with
15+
- walk_check
16+
- check_inherits
17+
- check_class
1618

17-
- title: rlang predicate wrappers
19+
- title: Specific validation
1820
desc: >
19-
Wrappers around rlang predicates that enable multiple inputs.
21+
Strongly typed validation.
2022
21-
- subtitle: Attributes
23+
- subtitle: Types
2224
contents:
23-
- are_named
24-
- have_names
25+
- check_list
26+
- check_atomic
27+
- check_vector
28+
- check_integer
29+
- check_double
30+
- check_numeric
31+
- check_character
32+
- check_logical
33+
- check_complex
34+
- check_raw
35+
- check_bytes
36+
- check_null
37+
- check_array
38+
- check_matrix
39+
- check_table
40+
- check_factor
41+
- check_ordered
42+
- check_date
43+
- check_posixct
44+
- check_posixlt
45+
- check_data_frame
46+
- check_tibble
47+
- check_data_table
48+
- check_tidytable
49+
- check_vctr
50+
- check_list_of
51+
- check_scalar_list
52+
- check_scalar_atomic
53+
- check_scalar_vector
54+
- check_scalar_integer
55+
- check_scalar_double
56+
- check_scalar_numeric
57+
- check_scalar_character
58+
- check_scalar_logical
59+
- check_scalar_complex
60+
- check_scalar_raw
61+
- check_scalar_bytes
2562

26-
- subtitle: Type predicates
63+
- subtitle: Values
2764
contents:
28-
- are_list
29-
- are_atomic
30-
- are_vector
31-
- are_integer
32-
- are_double
33-
- are_complex
34-
- are_character
35-
- are_logical
36-
- are_raw
37-
- are_bytes
38-
- are_null
65+
- check_true
66+
- check_false
67+
- check_bool
68+
- check_string
69+
- check_no_na
70+
- check_finite
71+
- check_nzchar
3972

40-
- subtitle: Scalar type predicates
73+
- subtitle: Modifiers
4174
contents:
42-
- are_scalar_list
43-
- are_scalar_atomic
44-
- are_scalar_vector
45-
- are_scalar_integer
46-
- are_scalar_double
47-
- are_scalar_complex
48-
- are_scalar_character
49-
- are_string
50-
- are_scalar_logical
51-
- are_bool
52-
- are_scalar_raw
53-
- are_scalar_bytes
75+
- bare
76+
- at_least
77+
- at_most
78+
- in_range
5479

55-
- subtitle: Bare type predicates
80+
- subtitle: File system
5681
contents:
57-
- are_bare_list
58-
- are_bare_atomic
59-
- are_bare_vector
60-
- are_bare_integer
61-
- are_bare_double
62-
- are_bare_complex
63-
- are_bare_character
64-
- are_bare_string
65-
- are_bare_logical
66-
- are_bare_raw
67-
- are_bare_bytes
68-
- are_bare_numeric
82+
- check_dir
83+
- check_file
84+
- check_ext
6985

70-
- subtitle: Integerish predicates
71-
contents:
72-
- are_integerish
73-
- are_scalar_integerish
74-
- are_bare_integerish
75-
76-
- subtitle: Utility predicates
86+
- title: Check builders
87+
desc: >
88+
Tools to build checks in the style of favr.
7789
contents:
78-
- are_empty
79-
- are_true
80-
- are_false
90+
- s3_vec_check
91+
- s3_df_check

man/cast_if_not.Rd

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

man/favr-package.Rd

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

man/modifiers.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.

man/recycle_if_not.Rd

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

0 commit comments

Comments
 (0)