/usr/lib/R/site-library/knitr/CITATION is in r-cran-knitr 1.17-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | citHeader("To cite the 'knitr' package in publications use:")
year = sub('.*(2[[:digit:]]{3})-.*', '\\1', meta$Date, perl = TRUE)
vers = paste('R package version', meta$Version)
citEntry(
entry = 'manual',
title = paste('knitr:', meta$Title),
author = Filter(function(p) 'aut' %in% p$role, as.person(meta$Author)),
year = year,
note = vers,
url = meta$URL,
textVersion = paste('Yihui Xie (', year, '). knitr: ', meta$Title, '. ', vers, '.', sep = '')
)
citEntry(
entry = 'book',
title = 'Dynamic Documents with {R} and knitr',
author = 'Yihui Xie',
publisher = 'Chapman and Hall/CRC',
address = 'Boca Raton, Florida',
year = '2015',
edition = '2nd',
note = 'ISBN 978-1498716963',
url = meta$URL,
textVersion = paste('Yihui Xie (2015)', 'Dynamic Documents with R and knitr.',
'2nd edition. Chapman and Hall/CRC. ISBN 978-1498716963')
)
citEntry(
entry = 'incollection',
booktitle = 'Implementing Reproducible Computational Research',
editor = 'Victoria Stodden and Friedrich Leisch and Roger D. Peng',
title = 'knitr: A Comprehensive Tool for Reproducible Research in {R}',
author = 'Yihui Xie',
publisher = 'Chapman and Hall/CRC',
year = '2014',
note = 'ISBN 978-1466561595',
url = 'http://www.crcpress.com/product/isbn/9781466561595',
textVersion = paste('Yihui Xie (2014)',
'knitr: A Comprehensive Tool for Reproducible Research in R.',
'In Victoria Stodden, Friedrich Leisch and Roger D. Peng, editors,',
'Implementing Reproducible Computational Research.',
'Chapman and Hall/CRC. ISBN 978-1466561595')
)
|