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.

  1. First, I took the code from the page and added the winter2024-arm64 tag as I am using a Mac.
  2. 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

  1. When it ran successfully, I checked the processing_output_filename by going to the directory and clicking on the file
  2. Then I checked for any errors in the file and ensured the document was able to knit