R_ver <- as.character(getRversion())
updateR <- function() {
if(!require(installr)) {
install.packages("installr")
} #load / install+load installr
updateR() # this will only work AFTER R 3.0.0
update.packages(checkBuilt=TRUE, ask = FALSE)
}
updatePkgs <- function() {
update.packages(checkBuilt=TRUE, ask = FALSE, dependencies = c('Suggests'))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.