Skip to content

Commit

Permalink
rename fct_attrs to fct
Browse files Browse the repository at this point in the history
  • Loading branch information
emitanaka committed Oct 15, 2023
1 parent a5ec0d0 commit 9fb8a0e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export(examine_process_values)
export(examine_recipe)
export(expect_rcrds)
export(export_design)
export(fct)
export(fct_attrs)
export(fct_edges)
export(fct_generator)
Expand Down
7 changes: 5 additions & 2 deletions R/attrs.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
#'
#' @seealso lvls
#' @examples
#' fct_attrs(c("A", "B"))
#' fct(c("A", "B"))
#' @export
fct_attrs <- function(.levels, ...) {
fct <- function(.levels, ...) {
dots <- dots_list(..., .named = TRUE, .homonyms = "keep", .ignore_empty = "all")

if(length(dots)) {
Expand All @@ -30,6 +30,9 @@ fct_attrs <- function(.levels, ...) {
.levels
}

#' @rdname fct
#' @export
fct_attrs <- fct

#' Setting the traits of the levels
#'
Expand Down
7 changes: 5 additions & 2 deletions man/fct_attrs.Rd → man/fct.Rd

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

0 comments on commit 9fb8a0e

Please sign in to comment.