# Find installed versions of Rscript
rversion <- paste(R.version$major, R.version$minor, sep = ".")
rscript <- findRscript(version = rversion)
# Configure which installed version to use
# Compute vector mean in different R installations
version.time(rscript, {
set.seed(1)
foo <- rnorm(1e4)
mean(foo)
})
# Compute matrix cross product in different R installations
version.time(rscript, {
set.seed(42)
m <- matrix(runif(100), nrow=10)
crossprod(m)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.