Skip to content

Commit

Permalink
fix: export unpkg-right-assign
Browse files Browse the repository at this point in the history
  • Loading branch information
dnldelarosa committed Jan 4, 2024
1 parent b336739 commit a1ab4dd
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: Dmisc
Title: Daniel miscellaneous functions
Version: 0.3.7
Version: 0.3.8
Authors@R:
person(given = "Daniel E.",
family = "de la Rosa",
Expand Down
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Generated by roxygen2: do not edit by hand

export("%...>%")
export("%<...%")
export("%>%")
export("%T>%")
Expand Down
18 changes: 15 additions & 3 deletions R/unpack_assign.R
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,21 @@



# @rdname unpkg-assign
# @order 2
# @export

#' Assign values to specified names in an environment and unpack the values (reverse of `%<...%`)
#'
#' @param values A list or vector containing the values to be assigned to the names.
#' @param names A list or character vector specifying the names of variables to be assigned.
#'
#' @return NULL. The function performs assignments in the specified environment.
#' @export
#'
#' @rdname unpkg-right-assign
#'
#' @examples
#' \dontrun{
#' list(1, 2) %...>% c("x", "y")
#' }
`%...>%` <- function(values, names) {
`%<...%`(names, values)
}
24 changes: 24 additions & 0 deletions man/unpkg-right-assign.Rd

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

0 comments on commit a1ab4dd

Please sign in to comment.