Skip to content

Commit

Permalink
Fix checks
Browse files Browse the repository at this point in the history
  • Loading branch information
chartgerink committed Sep 11, 2024
1 parent 6bcd44b commit 5bc2f1e
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 17 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Authors@R: c(
person("Chris", "Hartgerink", , "[email protected]", role = "cre",
comment = c(ORCID = "0000-0003-1050-6809"))
)
Description: Provides tools to help label and validate data according to user-specified rules. The 'datatagr' class adds variable level attributes to 'data.frame'columns. Once labelled, these variables can be seamlessly used in downstream analyses, making data pipelines clearer, more robust, and more reliable.
Description: Provides tools to help label and validate data according to user-specified rules. The 'datatagr' class adds variable level attributes to 'data.frame' columns. Once labelled, these variables can be seamlessly used in downstream analyses, making data pipelines clearer, more robust, and more reliable.
License: MIT + file LICENSE
URL: https://epiverse-trace.github.io/datatagr/, https://github.com/epiverse-trace/datatagr
BugReports: https://github.com/epiverse-trace/datatagr/issues
Expand Down
2 changes: 1 addition & 1 deletion R/datatagr-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
#' * `print()`: prints info about the `datatagr` in addition to the
#' `data.frame` or `tibble`
#'
#' @note The package does not aim to have complete integration with [dplyr]
#' @note The package does not aim to have complete integration with \pkg{dplyr}
#' functions. For example, [dplyr::mutate()] and [dplyr::bind_rows()] will
#' not preserve labels. We only provide compatibility for [dplyr::rename()].
#'
Expand Down
6 changes: 3 additions & 3 deletions R/square_bracket.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
#' ## create a datatagr
#' x <- cars %>%
#' make_datatagr(
#' mph = "speed",
#' distance = "dist"
#' speed = "Miles per hour",
#' dist = "Distance in miles"
#' ) %>%
#' mutate(result = if_else(speed > 50, "fast", "slow")) %>%
#' set_labels(ticket = "result")
#' set_labels(result = "Ticket")
#' x
#'
#' ## dangerous removal of a labelled column setting it to NULL issues a warning
Expand Down
6 changes: 2 additions & 4 deletions R/type.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@
#'
#' validate_types(
#' x,
#' types(
#' speed = type("numeric"),
#' dist = "integer"
#' )
#' speed = type("numeric"),
#' dist = "numeric"
#' )
#'
type <- function(x) {
Expand Down
2 changes: 2 additions & 0 deletions inst/WORDLIST
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ Codecov
Lifecycle
ORCID
RECON
Unlabeled
dplyr
lifecycle
linelist
tidyverse
2 changes: 1 addition & 1 deletion man/datatagr-package.Rd

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

6 changes: 3 additions & 3 deletions man/sub_datatagr.Rd

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

6 changes: 2 additions & 4 deletions man/type.Rd

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

0 comments on commit 5bc2f1e

Please sign in to comment.