inst/citation.txt.R

<<
    # 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>>
BioStatMatt/yarr documentation built on May 5, 2019, 3:47 p.m.