# NOT RUN {
library(beakr)
# Create an new Beakr instance
beakr <- newBeakr()
# beakr pipeline
beakr %>%
httpGET("/", function(req, res, err) {
return("Successful GET request!\n")
}) %>%
listen(daemon = TRUE) # run in the background
# Stop the server
stopServer(beakr)
# }
Run the code above in your browser using DataLab