This repo contains the Dockerfile for the base image to set up an environment to be used with the Introduction to Quantitative Text Analysis for Linguistics textbook.
Properties:
- Based on the rocker/r-ver:4.4.1 image
- Installs Python3, radian, jupyter, Pandoc (3.1.11.1) and Quarto (1.5.56)
- Creates a non-root user
ruser
with passwordlesssudo
access - Installs R packages: {pak}, {renv}, {knitr}, {rmarkdown} and {tinytext}, as well as running the TinyTex installer adding the executables to
~/.local/bin/
The image can be found on Docker Hub at francojc/qtalr-r. To use it, you can run:
docker run -it francojc/qtalr-r:latest
Or you can create a container with a volume to mount your local directory:
docker run -it -v /path/to/your/local/directory:/home/ruser francojc/qtalr-r:latest
Alternatively, you can use Docker Desktop to run the image and connect it to a host directory.
Note
I highly recommend installing packages with {pak} instead of the default install.packages()
function. This will ensure that when packages are installed, any system dependencies are also installed.