Course webpage for UCLA Biostat 203B (Intro. to Data Science in R)
https://ucla-biostat-203b.github.io/2024winter/
Brief instructions for reproducing the course materials are given below. For more detailed instructions, see lab 1.
To render the lecture materials (qmd
files),
-
Install R/RStudio, Quarto, Python, and Julia.
-
Install the R packages required for the course.
# in R terminal install.packages(read.csv("Docker/r_pkgs.txt", header = F)[[1]], repos = "https://cran.rstudio.com")
-
Install the Python packages required for the course. More often than not, you have multiple versions of Python installed on your machine. Make sure you install the packages for the Python version that you use for this course. In RStudio, choose the Python version at
Tools
->Global Options
->Python
.# in Bash terminal python -m pip install -r Docker/python_pkgs.txt
-
Install the Julia packages required for the course.
# in Julia terminal using Pkg Pkg.add.(readlines("Docker/julia_pkgs.txt"));
Alternatively, you can use Docker to reproduce the course materials.
-
Install Docker Desktop.
-
Pull the Docker image from Docker Hub.
docker pull huazhou/ucla-biostat-203b-2024w
-
Modify
docker-compose.yml
to map203-lecture
,203-hw
,212a-lecture
,mimic
,~/.ssh
, and~/.gitconfig
folders on local machine to container. -
Run the Docker image.
docker-compose up