Skip to content

Latest commit

 

History

History
56 lines (40 loc) · 1.53 KB

README.md

File metadata and controls

56 lines (40 loc) · 1.53 KB

🌡️💧 hotwater

Lifecycle: experimental hotwater status badge Codecov test coverage R-CMD-check

Note

This package is under active development and its functionality may change over time.

  • autoreload for plumber
  • auto-refresh the browser when a change is made
  • run hotwater from the commandline via included 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...