sourceFile | R Documentation |
sourcefile function is a wrapper for source which will later allow some test and feebacks sourceFile source a file from the "scripts" path as set by setPath("scripts","absolute path")
sourceFile(pathname, filename)
pathname |
pathname as label |
filename |
name of the file to source (if it contain a path, this one will be added to the scripts path) |
nothing
file <- tempfile(fileext = ".R")
cat("# comment", file = file, sep = "\n")
setPath("scripts","")
sourceFile("scripts",file)
unlink(file) # tidy up
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.