Skip to content

Commit

Permalink
add infix function variants
Browse files Browse the repository at this point in the history
  • Loading branch information
parmsam committed May 23, 2023
1 parent 8b631ba commit 86dbfd5
Show file tree
Hide file tree
Showing 6 changed files with 100 additions and 0 deletions.
4 changes: 4 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Generated by roxygen2: do not edit by hand

export("%>%")
export("%f2%")
export("%fe%")
export("%fp%")
export("%fu%")
export(forgot)
export(forgot2)
export(forgotAddin)
Expand Down
34 changes: 34 additions & 0 deletions R/forgot.R
Original file line number Diff line number Diff line change
Expand Up @@ -290,3 +290,37 @@ forgot_params <- function(pkg, function_name,
new_file_write <- function(content, type = "rmarkdown"){
rstudioapi::documentNew(text = content, type = type)
}

#' %f2%
#'
#' @examples
#' `%f2%`("stringr")
#' stringr %f2%
#' "dplyr" %f2% "count"
#' dplyr %f2% "count"
#' @export
`%f2%` <- forgot2

#' %fu%
#'
#' @examples
#' "dplyr" %fu% "count"
#' dplyr %fu% count
#' @export
`%fu%` <- forgot_usg

#' %fe%
#'
#' @examples
#' "dplyr" %fe% "count"
#' dplyr %fe% count
#' @export
`%fe%` <- forgot_exmpls

#' %fp%
#'
#' @examples
#' "dplyr" %fp% "count"
#' dplyr %fp% count
#' @export
`%fp%` <- forgot_params
17 changes: 17 additions & 0 deletions man/grapes-f2-grapes.Rd

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

15 changes: 15 additions & 0 deletions man/grapes-fe-grapes.Rd

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

15 changes: 15 additions & 0 deletions man/grapes-fp-grapes.Rd

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

15 changes: 15 additions & 0 deletions man/grapes-fu-grapes.Rd

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

0 comments on commit 86dbfd5

Please sign in to comment.