Spaces:
Sleeping
Sleeping
Commit ·
616ee2f
1
Parent(s): c431937
fix Dockerfile
Browse files- Dockerfile +1 -1
- app.R +1 -0
Dockerfile
CHANGED
|
@@ -18,7 +18,7 @@ RUN Rscript -e "install.packages('pak', repos = sprintf('https://r-lib.github.io
|
|
| 18 |
RUN Rscript -e "pak::pkg_install('rstudio/plumber@main')"
|
| 19 |
|
| 20 |
# install other R packages
|
| 21 |
-
RUN Rscript -e "pak::pkg_install(c('janitor'))"
|
| 22 |
|
| 23 |
# setup workspace
|
| 24 |
COPY . /app
|
|
|
|
| 18 |
RUN Rscript -e "pak::pkg_install('rstudio/plumber@main')"
|
| 19 |
|
| 20 |
# install other R packages
|
| 21 |
+
RUN Rscript -e "pak::pkg_install(c('janitor', 'tidyverse'))"
|
| 22 |
|
| 23 |
# setup workspace
|
| 24 |
COPY . /app
|
app.R
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
library(plumber)
|
|
|
|
| 2 |
# 'plumber.R' is the location of the file shown above
|
| 3 |
|
| 4 |
pr("function.R") %>%
|
|
|
|
| 1 |
library(plumber)
|
| 2 |
+
library(tidyverse)
|
| 3 |
# 'plumber.R' is the location of the file shown above
|
| 4 |
|
| 5 |
pr("function.R") %>%
|