Debian Codegraph @

inst/CITATION

raw
1 year = sub('.*(2[[:digit:]]{3})-.*', '\\1', meta[['Date/Publication']], perl = TRUE)
2 vers = paste('R package version', meta$Version)
3 if (length(year) == 0) year = format(Sys.Date(), '%Y')
4
5 bibentry(
6 'manual',
7 title = paste('knitr:', gsub('\\bR\\b', '{R}', meta$Title)),
8 author = Filter(function(p) 'aut' %in% p$role, as.person(meta$Author)),
9 year = year,
10 note = vers,
11 url = meta$URL
12 )
13
14 bibentry(
15 'book',
16 title = 'Dynamic Documents with {R} and knitr',
17 author = 'Yihui Xie',
18 publisher = 'Chapman and Hall/CRC',
19 address = 'Boca Raton, Florida',
20 year = '2015',
21 edition = '2nd',
22 note = 'ISBN 978-1498716963',
23 url = meta$URL,
24 textVersion = paste('Yihui Xie (2015)', 'Dynamic Documents with R and knitr.',
25 '2nd edition. Chapman and Hall/CRC. ISBN 978-1498716963')
26 )
27
28 bibentry(
29 'incollection',
30 booktitle = 'Implementing Reproducible Computational Research',
31 editor = 'Victoria Stodden and Friedrich Leisch and Roger D. Peng',
32 title = 'knitr: A Comprehensive Tool for Reproducible Research in {R}',
33 author = 'Yihui Xie',
34 publisher = 'Chapman and Hall/CRC',
35 year = '2014',
36 note = 'ISBN 978-1466561595',
37 textVersion = paste('Yihui Xie (2014)',
38 'knitr: A Comprehensive Tool for Reproducible Research in R.',
39 'In Victoria Stodden, Friedrich Leisch and Roger D. Peng, editors,',
40 'Implementing Reproducible Computational Research.',
41 'Chapman and Hall/CRC. ISBN 978-1466561595')
42 )