R-Docker-Starting-point/Alias_Docker.r
2026-01-12 11:39:36 -07:00

9 lines
649 B
R

#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'