| hostess | R Documentation | 
Add hostess dependencies.
use_hostess()
useHostess()
new()Hostess$new(id = NULL, min = 0, max = 100, n = 1, infinite = FALSE)
idId used in hostess_loader if you generate the loader with
the loader method you may leave this NULL.
min, maxMinimum and maximum representing the starting and ending points of the progress bar.
nNumber of loaders to generate.
infiniteSet to TRUE to create a never ending loading bar, ideal
when you cannot compute increments or assess the time it might take before the
loading bar should be removed.
Create a hostess.
\dontrun{Hostess$new()}
start()Hostess$start()
Start the hostess
print()Hostess$print()
Print the hostess
set()Hostess$set(value)
valueValue to set, between 0 and 100.
Set the hostess loading bar.
\dontrun{Hostess$new()$set(20)}
inc()Hostess$inc(value)
valueValue to set, between 0 and 100.
Increase the hostess loading bar.
\dontrun{Hostess$new()$inc(10)}
close()Hostess$close()
Close the hostess
\dontrun{Waitress$new("#plot")$close()}
get_loader()Hostess$get_loader(
  preset = NULL,
  text_color = "#FFFFFF",
  center_page = FALSE,
  class = "",
  min = NULL,
  max = NULL,
  svg = NULL,
  progress_type = c("stroke", "fill"),
  fill_direction = c("btt", "ttb", "ltr", "rtl"),
  stroke_direction = c("normal", "reverse"),
  fill_color = NULL,
  stroke_color = NULL,
  ...
)presetA loading bar preset, see section below.
text_colorThe color of the loading text.
center_pageBy default the hostess is centered in the middle
of the screen, ideal when using it with waiter full screen, set to
FALSE to prevent that.
classCSS class.
min, maxMinimum and maximum representing the starting and ending points of the progress bar.
svgEither an svg path e.g.: M10 10L90 10 or the path to a .svg
file. Note that if passing the latter it must be made available to Shiny by
placing it either in the www folder or using shiny::addResourcePath().
progress_typeThe progress type, either stroke or fill.
Ther former traces the path of the svg while the latter fills it progressively.
fill_direction, stroke_directionThe direction which the progress bar should
take. Wether fill_direction or stroke_direction is used depends on
progress_type.
fill_color, stroke_colorThe color to use for the progress bar.
Wether fill_color or stroke_color is used depends on
progress_type.
...Any other other advanced options to pass to the loaded see the official documentation.
Create a hostess loading bar.
\dontrun{Hostess$new()$get_loader()}
set_loader()Hostess$set_loader(loader)
loaderLoader as defined by hostess_loader().
Set a hostess loader as defined by hostess_loader().
\dontrun{
loader <- hostess_loader()
Hostess$new()$set_loader(loader)
}
notify()Hostess$notify(
  html = NULL,
  background_color = "transparent",
  text_color = "black",
  position = c("br", "tr", "bl", "tl")
)htmlAdditional HTML content of the tag or a character string.
background_colorBackground color of the notification.
text_colorColor of text of html.
positionPosition of the notification on the screen.
Where br is the bottom-right, tr is the top-right,
bl is bottom-left, and tl is the top-left.
Use the hostess as a notification. It is hidden when set tpo 100.
\dontrun{Hostess$new()$notify()}
clone()The objects of this class are cloneable with this method.
Hostess$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------
## Method `Hostess$new`
## ------------------------------------------------
## Not run: Hostess$new()
## ------------------------------------------------
## Method `Hostess$set`
## ------------------------------------------------
## Not run: Hostess$new()$set(20)
## ------------------------------------------------
## Method `Hostess$inc`
## ------------------------------------------------
## Not run: Hostess$new()$inc(10)
## ------------------------------------------------
## Method `Hostess$close`
## ------------------------------------------------
## Not run: Waitress$new("#plot")$close()
## ------------------------------------------------
## Method `Hostess$get_loader`
## ------------------------------------------------
## Not run: Hostess$new()$get_loader()
## ------------------------------------------------
## Method `Hostess$set_loader`
## ------------------------------------------------
## Not run: 
loader <- hostess_loader()
Hostess$new()$set_loader(loader)
## End(Not run)
## ------------------------------------------------
## Method `Hostess$notify`
## ------------------------------------------------
## Not run: Hostess$new()$notify()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.