Skip to contents

Print usage for an R function of interest in console

Usage

forgot_usg(pkg, function_name, write = FALSE)

Arguments

pkg

string with installed R package name

function_name

function name in R package

write

logical write to RStudio rmd file, FALSE by default

Examples

forgot_usg("dplyr", "count")
#> 
#> count(x, ..., wt = NULL, sort = FALSE, name = NULL)
#> 
#> \method{countdata.frame}(
#>   x,
#>   ...,
#>   wt = NULL,
#>   sort = FALSE,
#>   name = NULL,
#>   .drop = group_by_drop_default(x)
#> )
#> 
#> tally(x, wt = NULL, sort = FALSE, name = NULL)
#> 
#> add_count(x, ..., wt = NULL, sort = FALSE, name = NULL, .drop = deprecated())
#> 
#> add_tally(x, wt = NULL, sort = FALSE, name = NULL)
forgot_usg(dplyr, count)
#> 
#> count(x, ..., wt = NULL, sort = FALSE, name = NULL)
#> 
#> \method{countdata.frame}(
#>   x,
#>   ...,
#>   wt = NULL,
#>   sort = FALSE,
#>   name = NULL,
#>   .drop = group_by_drop_default(x)
#> )
#> 
#> tally(x, wt = NULL, sort = FALSE, name = NULL)
#> 
#> add_count(x, ..., wt = NULL, sort = FALSE, name = NULL, .drop = deprecated())
#> 
#> add_tally(x, wt = NULL, sort = FALSE, name = NULL)
if (FALSE) { # \dontrun{
forgot_usg(dplyr, count, write = TRUE)
} # }