added R wrapper script to check for cached file and download if missing