The script is as following
wget -c <link to google chrome.deb>
wget -c <link to etc.deb>
sudo dpkg -i *
sudo apt-get -y install r-base-core eclipse
rm -r ./install9327
spd-say "mission completed, no guarantee of success."
Make the script executable with
sudo chmod +x /path_to_script/filename.sh # filename.sh is your script name.
This script will create a folder, download chrome and etc, install them, install R and eclipse and then clear all the stuff.At last it gives a spoken message.
In case of failure(due to disconnection,broken dependencies etc), this script will just leave a folder behind, which you may want to delete.
NOTE:- You have to manually ensure the links to google chrome and etc, do not install wrong packages on wrong distro.