Skip to content

1. Account Set up

Karen Liu edited this page Jan 17, 2023 · 1 revision

Objective

Set up my account, course journal, and docker in preparation for the rest of the course.

Estimated Duration

1 hour

Procedure + Results

GitHub Set-up

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.

Docker Set-up

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')"

Conclusions

I've had numerous compatibility issues with the Apple silicon chip so far, not just in this course. A workaround is needed.

References

(Add references)