Select Git revision
sourceembed.js
-
Ben Anderson authored
fixed data paths for HCS use; added notes re random re-sampling process; removed word version as they won't match (due to random re-sampling process)
Ben Anderson authoredfixed data paths for HCS use; added notes re random re-sampling process; removed word version as they won't match (due to random re-sampling process)
sourceembed.js 357 B
window.initializeSourceEmbed = function(filename) {
$("#rmd-download-source").click(function() {
var src = $("#rmd-source-code").html();
var a = document.createElement('a');
a.href = "data:text/x-r-markdown;base64," + src;
a.download = filename;
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
});
};