Tidy up R installation commands, get TIFF working, add support for building manuals, etc.