-
Notifications
You must be signed in to change notification settings - Fork 0
1. Account Set up
Set up my account, course journal, and docker in preparation for the rest of the course.
1 hour
I was added to the repository, and I set-up my wiki and course journal. Very straightforward.
Result: My account is prepped in order to continue in this course.
Here, I ran the following command in my terminal in order to pull the Docker base image for this course and build the container:
docker run -e PASSWORD=changeit -v "${PWD}":/home/rstudio/projects -p 8787:8787 risserlin/bcb420-base-image:winter2023
This worked, as I was able to load RStudio when opening localhost:8787, however when I attempted to log in, I obtained an error message that it was unable to connect to the R session. When inspecting my terminal, I noticed the message WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
. I am wondering if this error is the result of the Apple silicon chip that my device uses.
Looking at the General Course Questions discussion board of Quercus, I found ChengYue's suggestion to be very helpful (thank you!!) - i.e. coding on our local computer and then compiling the rmd file using the following commandline:
docker run --rm -it -v "$(pwd)":/home/rstudio/projects --user rstudio risserlin/bcb420-base-image:winter2023 /usr/local/bin/R -e "rmarkdown::render('/home/rstudio/projects/r-notebook.Rmd',output_file='/home/rstudio/projects/r-notebook.html')"
I've had numerous compatibility issues with the Apple silicon chip so far, not just in this course. A workaround is needed.
(Add references)