Skip to contents
  • autoreload for plumber
  • auto-refresh the browser when a change is made
  • run from the commandline with the /exec/hotwater bash script

Installation

You can install the development version of hotwater from GitHub with:

# install.packages("devtools")
devtools::install_github("ElianHugh/hotwater")

Example

Hotwater can be run via an R session:

hotwater::run(
    system.file("examples", "plumber.R", package = "hotwater"),
    port = 9999L
)
✔ Server running on <127.0.0.1:9999> [17ms]
→ Watching ./path/to/ for changes...

or a terminal using the bash script:

hotwater -f my/plumber/api.R -p 9999
✔ Server running on <127.0.0.1:9999> [17ms]
→ Watching ./path/to/ for changes...