R-Docker-Starting-point/r-Docker-Alias.sh
2026-01-08 15:40:30 -07:00

10 lines
650 B
Bash

#Create a terminal shortcut to open the current directory in the docker
#Docker images with all the R packages I have ever used
alias r-full='docker run -ti --rm -v ./:/R-Code/ acg/r_full:latest bash' #Pull in the current directory into the docker image. Enter the image to modify with a r vim IDE preloaded.
alias r-full-script='docker run -v ./:/R-Code/ acg/r_full:latest Rscript' #Run a r-file as a script rather than Interactively
#Docker images with minimal packages loaded to save space
alias r-min='docker run -ti --rm -v ./:/R-Code/ acg/r_minimal:latest bash'
alias r-min-script='docker run -v ./:/R-Code/ acg/r_minimal:latest Rscript'