Learn R Programming

waiter (version 0.1.3)

butlerClass: Butler R6 Class

Description

Create a butler.

Arguments

Methods

Public methods

Method new()

Usage

Butler$new(
  thickness = 5,
  colors = list(`0` = "red", `.3` = "blue", `1` = "green"),
  shadow_blur = 5,
  shadow_color = "rgba(0, 0, 0, .5)"
)

Arguments

thickness

Thickness of the bar.

colors

List of gradient color stops used to draw the progress bar.

shadow_blur

Shadow blur size.

shadow_color

Shadow color.

Details

Create a butler.

Examples

\dontrun{Butler$new()}

Method show()

Usage

Butler$show()

Details

Show the butler.

Examples

\dontrun{Butler$new()$show()}

Method print()

Usage

Butler$print()

Details

print the butler

Method hide()

Usage

Butler$hide()

Details

Hide the butler.

Examples

\dontrun{Butler$new()$show()$hide()}

Method clone()

The objects of this class are cloneable with this method.

Usage

Butler$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Details

Create an object to show a loading bar to display at the top of the application.

Examples

Run this code
# NOT RUN {
## ------------------------------------------------
## Method `Butler$new`
## ------------------------------------------------

# }
# NOT RUN {
Butler$new()
# }
# NOT RUN {
## ------------------------------------------------
## Method `Butler$show`
## ------------------------------------------------

# }
# NOT RUN {
Butler$new()$show()
# }
# NOT RUN {
## ------------------------------------------------
## Method `Butler$hide`
## ------------------------------------------------

# }
# NOT RUN {
Butler$new()$show()$hide()
# }

Run the code above in your browser using DataLab