Debian Codegraph @

inst/CITATION

raw
1 year = sub('.*(2[[:digit:]]{3})-.*', '\\1', meta$Date, perl = TRUE)
2 if (length(year) == 0) year = format(Sys.Date(), '%Y')
3 vers = paste('R package version', meta$Version)
4 auth = format(Filter(function(p) 'aut' %in% p$role, as.person(meta$Author)), c('given', 'family'))
5
6 bibentry(
7 'Manual',
8 title = paste('rmarkdown:', meta$Title),
9 author = auth,
10 year = year,
11 note = vers,
12 url = strsplit(meta$URL, ',')[[1]][1],
13 )
14
15 bibentry(
16 'Book',
17 title = 'R Markdown: The Definitive Guide',
18 author = c('Yihui Xie', 'J.J. Allaire', 'Garrett Grolemund'),
19 publisher = 'Chapman and Hall/CRC',
20 address = 'Boca Raton, Florida',
21 year = '2018',
22 isbn = '9781138359338',
23 url = 'https://yihui.org/rmarkdown/',
24 )
25
26 bibentry(
27 'Book',
28 title = 'R Markdown Cookbook',
29 author = c('Yihui Xie', 'Christophe Dervieux', 'Emily Riederer'),
30 publisher = 'Chapman and Hall/CRC',
31 address = 'Boca Raton, Florida',
32 year = '2020',
33 isbn = '9780367563837',
34 url = 'https://yihui.org/rmarkdown-cookbook',
35 )