downloadFromMirror | R Documentation |
Downloads a file from a given mirror and checks its md5 sum. The file is stored in a given path
downloadFromMirror(mirror, file_path, md5_sum)
mirror |
URL from which to download the file. |
file_path |
Path or folder where the downloaded file will be stored. |
md5_sum |
md5 checksum string corresponding to the file to download. The method will check that the downloaded file checksum and the md5_sum parameter match. |
Returns 1 if the download was successful and -1 otherwise.
# Download RKEELjars file
dCode = RKEEL::downloadFromMirror("https://personal.us.es/jmoyano1/RKEELjars_1.1.zip",
downloadedJarFile, md5_sum)
# Check if the download was successful
if(dCode<0){
print('There was an error during the download.')
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.