asFILE =
function(filename)
{
if(!file.exists(filename))
stop("No such file ", filename)
path.expand(filename)
}
setClass("FILERef", contains = "RC++Reference", prototype = list(classes = "FILE"))
setAs("character", "FILERef",
function(from) {
.Call("R_asFILERef", from, "r")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.