Rewrite code so that there's a "configuration" and then a script to run. I.e. I should be able to start a new VM instance and then do git clone https://github.com/kylebarron/linux_setup.git, edit a file like linux_setup.conf where the uncommented lines are what will be installed. I.e. with a linux_setup.conf like the below, I should be able to run ./linux_install.sh and then have it install just R and Rstudio-desktop.
R
Rstudio-desktop
#Rstudio-server
#R Packages
Also there should be a switch for whether it should use sudo or non-sudo. If something hasn't been ported for sudo and non-sudo installation, it should print something like "installing R hasn't been added for non-sudo".
Also, make sure to do it in bash so it's portable.
Rewrite code so that there's a "configuration" and then a script to run. I.e. I should be able to start a new VM instance and then do
git clone https://github.com/kylebarron/linux_setup.git
, edit a file likelinux_setup.conf
where the uncommented lines are what will be installed. I.e. with alinux_setup.conf
like the below, I should be able to run./linux_install.sh
and then have it install just R and Rstudio-desktop.Also there should be a switch for whether it should use sudo or non-sudo. If something hasn't been ported for sudo and non-sudo installation, it should print something like "installing R hasn't been added for non-sudo".
Also, make sure to do it in bash so it's portable.