The goal of hp is to allow you to pipe a function into help using the {magrittr} pipe, %>%
.
The development version from GitHub with:
# install.packages("devtools")
remotes::install_github("erictleung/hp")
The h()
function is designed to only work interactively.
Additionally, this package was created because the {magrittr} pipe doesn’t play well with piping in functions into the help()
function.
This was fixed with the new native R pipe operator, |>
.
dim |> help()
Note, the left side should not have parentheses or R will warn you that the help()
function requires, “a name, length-one character vector or reserved word.”