Mise en place projet R
This commit is contained in:
Executable
+13
@@ -0,0 +1,13 @@
|
||||
# Lancement du service Plumber
|
||||
suppressPackageStartupMessages({
|
||||
library(plumber)
|
||||
#library(plumber2)
|
||||
library(here)
|
||||
})
|
||||
|
||||
pr <- plumb(here("R", "api", "plumber.R"))
|
||||
options(plumber.debug = TRUE)
|
||||
pr$run(
|
||||
host = "0.0.0.0",
|
||||
port = as.integer(Sys.getenv("PORT", "8000"))
|
||||
)
|
||||
Reference in New Issue
Block a user