based on the type it can either use `apt-get install <package>` or rinstall for R
based on the type it can either use
apt-get install <package>or rinstall for R