Assignment‐1: Running on Docker - bcb420-2024/Krutika_Joshi GitHub Wiki
To ensure the file runs in docker, I followed the instructions provided by the professor on the assignment page.
- First, I took the code from the page and added the winter2024-arm64 tag as I am using a Mac.
- Then I ran the following command
MacBook-Air:Git Repository <my_user_name>$ docker run --rm -it -v "$(pwd)":/home/rstudio/projects --user rstudio risserlin/bcb420-base-image:winter2024-arm64 /usr/local/bin/R -e "rmarkdown::render('/home/rstudio/projects/A1_JoshiKrutika.Rmd',output_file='/home/rstudio/projects/A1_JoshiKrutika.html')" > processing_output_filename
- When it ran successfully, I checked the processing_output_filename by going to the directory and clicking on the file
- Then I checked for any errors in the file and ensured the document was able to knit