Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Name this script bootstrapLatestR.sh and it should contain the following code:

Code Block
#!/bin/bash
sudo cat >/etc/apt/sources.list <<EOF
deb http://http.us.debian.org/debian       lenny          main contrib non-free
deb http://http.us.debian.org/debian       stable         main contrib non-free
deb http://security.debian.org             lenny/updates  main contrib non-free
deb http://security.debian.org             stable/updates main contrib non-free
deb http://cran.fhcrc.org/bin/linux/debian lenny-cran     main contrib non-free
EOF
sudo apt-get update
sudo apt-get -t lenny-cran install --yes --force-yes r-base r-base-dev
exit 0

What is going on in this script?

...