knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
version <- as.vector(read.dcf('DESCRIPTION')[, 'Version']) version <- gsub('-', '.', version)
Emulate bash prompt behavior in R console by replacing R's default prompt of >
with the getwd
string. RStudio does display the current working directory in the Console window title bar, but it is not normally where I look. The global environment can be cleared without affecting the prompt behavior.
Complete package documentation is here.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.