R tutorial for spectroscopy workshop at University of Sydney in April 2013