Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements to Docker Section for R #20

Open
derekrodgers opened this issue Jan 6, 2025 · 0 comments
Open

Improvements to Docker Section for R #20

derekrodgers opened this issue Jan 6, 2025 · 0 comments

Comments

@derekrodgers
Copy link

Per Tiffany's request, here are some issues my DSCI 522 team ran into when attempting to implement contianerization using Docker by following the instructions in this textbook:

  • The textbook says to use rocker/tidyverse as the base image, but Tiffany explained during Office Hours that the generally preferred base image for R containers is rocker/verse.
  • The lectures covered using Renv to install packages in the image. However, Tiffany explained that an easier and more commonly-used solution is calling RUN install2.r in the Dockerfile.
  • The official Docker docs caution against using the flag --platform=linux/amd64 (see here in lecture notes), and the build command throws the warning FROM --platform flag should not use constant value "linux/amd64" when the flag is invoked. We were told this flag is necessary to avoid issues on ARM64 macs, and this certainly seems correct. However, the warning flag and contradiction with the official docs is confusing and the textbook should probably provide a rationale for why the docs should be ignored in this case.

These discrepancies caused quite a bit of friction during the grading process: following Tiffany's instructions caused TAs to repeatedly deduct points from our group's milestones, as they did not understand that (or why) the above approach is preferred. This meant that Daniel had to intervene directly multiple times to regrade our milestones himself.

It's my understanding that ours was one of only two groups in the cohort that chose to use R for our DSCI 522 project, but it is nonetheless offered as a choice, so the textbook and grading guidelines should probably be updated in order to bring everything into alignment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant