inst/examples/static/app.R

library(presser)

app <- new_app()
app$use(mw_log())

app$use(mw_static("public"))

app$listen(as.integer(Sys.getenv("PORT", NA_character_)))

Try the presser package in your browser

Any scripts or data that you put into this service are public.

presser documentation built on July 1, 2020, 5:49 p.m.