@@ -23,9 +23,12 @@ for both R and Python.
2323 You can create additional scripts for modularization/better organization
2424 if desired.
2525
26- 2 . ( If using Python) Update ` requirements.txt ` with any additional
26+ 2 . If using Python, update ` requirements.txt ` with any additional
2727 libraries/packages used by your script(s).
2828
29+ If using R, update ` requirements.R ` and add/remove any libraries/packages
30+ listed in ` pkg_list ` that are used by your script(s).
31+
29323 . (optional) Locally run ` run_model.* ` to ensure it can run successfully.
3033
3134 These scripts have been written so that the input and output files are not
@@ -49,12 +52,21 @@ for both R and Python.
4952
5053### Update the Dockerfile
5154
52- * (If using R) Add any additional packages used by your script(s) to the
53- installation step.
55+ * Again, make sure that all needed libraries/packages are specified in the
56+ `requirements.*` file. Because all Docker submissions are run without network
57+ access, you will not able to install anything during the container run. If
58+ you do not want to use a `requirements.*` file, you may run replace the RUN
59+ command with the following:
60+
61+ **Python**
62+ ```
63+ RUN pip install pandas
64+ ```
5465
55- > **Note** All Docker submissions will be run without network access, so
56- > you must install all needed dependencies here in the Dockerfile rather
57- > than in your Rscripts.
66+ **R**
67+ ```
68+ RUN R -e "install.packages(c('optparse'), repos = 'http://cran.us.r-project.org')"
69+ ```
5870
5971* `COPY` over any additional files required by your model. We recommend using
6072one `COPY` command per file, as this can help speed up build time.
0 commit comments