changed R file to download from Github