Spaces:
Sleeping
Sleeping
File size: 488 Bytes
726b114 616ee2f 726b114 4c3db36 4dfdb4e 4c3db36 f293df4 805e26d 726b114 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | library(plumber)
library(tidyverse)
# 'plumber.R' is the location of the file shown above
message("---- load utils function ----")
source(file = "utils_function.R")
message("---- load any data ----")
source(file = "data_loader_script.R")
message("---- run plumber ----")
pr() %>%
pr_mount("/a", pr("services/a_services.R")) %>%
pr_mount("/b", pr("services/b_services.R")) %>%
pr_mount("/utils", pr("function.R")) %>%
pr_set_docs(F) %>%
pr_run(host = "0.0.0.0", port=7860) |