Skip to content

Instantly share code, notes, and snippets.

First attempt using import version

setwd("~/projects/Github/")
packageVersion("import")
#> [1] ‘1.3.0.9004’

if (dir.exists("pkgs")) unlink("pkgs", recursive = TRUE)

dir.create("pkgs")
dir.create("pkgs/0.1.0")
@DavZim
DavZim / plumber.R
Created January 15, 2024 22:20
R Plumber + HTMX
#* @assets ./public /
list()
n_clicked <- 0
#* @post /clicked
#* @serializer html
function() {
n_clicked <<- n_clicked + 1
paste0("Clicked <b>", n_clicked, "</b>\n")
}