Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What
There are some issues running the r studio tutorial on M1/M2 Macs. See rocker-org/rocker-versioned2#144 for additional details.
Why is this a problem?
The docker image that is used for the tutorial:
drbueno/rstudio-single-cell:latest
is 2 years old and uses an old rstudio image:rocker/rstudio
. The team that manages this image has apparently fixed this issue rocker-org/rocker-versioned2#144 (comment).The real fix here would be to rebuild the docker file locally (since it automatically uses latest) and push to docker hub - however, I've attempted this and found my self in a 🌊 of dependency errors. Perhaps another day...
Fix
Thankfully there is an alternative fix: rocker-org/rocker-versioned2#144 (comment). This involves:
docker run
, namely--platform linux/x86_64
.Use Rosetta for x86/amd64 emulation on Apple Silicon
I've added a conditional so that running
./start
automatically detects the host OS and uses the appropriate docker command.Docker settings
These are screenshots of the docker settings that should be enabled:
Bonus