How to wget the more recent file of a directory

view full story

http://stackoverflow.com – I would like to write a bash script that downloads and install the latest daily build of program (RStudio). Is it possible to make wget to download only the most recent file in the directory http://www.rstudio.org/download/daily/desktop/ ? (HowTos)