<<
# Add a new handler to cite R
.handlers[[length(.handlers) + 1]] <- list(
regex = '^citation$',
handler = function(code, envir) {
cit <- citation()$textVersion
paste(strwrap(cit, width=70), sep='', collapse='\n')
})
->>
This is how R should be cited in publications:
<<citation>>
Here it is again:
<<citation>>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.