Verbose CLI output for extended and rich description of steps along a complex workflow, typically used in a pipeline
Source:R/swissArmyKnife.R
function_cli_intro.RdDisplay to the user the main package, the function being executed, and the parameters passed to the function.
Examples
# For demo purposes, set these variables
parameter_x <- 100
parameter_y <- "demo"
# In practice, these variables are set within the function being called as in below:
# workflow_demo_func <- function(parameter_x, parameter_y)
# then the function_cli_intro is called within the function
function_cli_intro(package = "devgru",
function_name = "workflow_demo_func",
parameter_x, parameter_y)
#> [ devgru v0.99.0 ]
#>
#> ────────────────────────────────────────────────────────────────────────────────
#>
#> Error in "cli::cli_alert(text = \"Launching {.emph {.pkg {function_name}()}} {crayon::white(clisymbols::symbol$ellipsis)}\")": ! Could not evaluate cli `{}` expression: `crayon::white(clisy…`.
#> Caused by error in `loadNamespace(x)`:
#> ! there is no package called ‘clisymbols’