Skip to content

Commit f4d00fc

Browse files
committed
use bibentry() instead of citEntry() to pass R CMD check
1 parent 8294bca commit f4d00fc

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

inst/CITATION

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,23 @@
1-
citHeader("To cite the 'bookdown' package in publications use:")
2-
31
year = sub('.*(2[[:digit:]]{3})-.*', '\\1', meta$Date, perl = TRUE)
42
vers = paste('R package version', meta$Version)
3+
if (length(year) == 0) year = format(Sys.Date(), '%Y')
54

6-
citEntry(
7-
entry = 'manual',
5+
bibentry(
6+
'manual',
87
title = paste('bookdown:', meta$Title),
98
author = Filter(function(p) 'aut' %in% p$role, as.person(meta$Author)),
109
year = year,
1110
note = vers,
12-
url = strsplit(meta$URL, ',')[[1]][1],
13-
textVersion = paste('Yihui Xie (', year, '). bookdown: ', meta$Title, '. ', vers, '.', sep = '')
11+
url = strsplit(meta$URL, ',')[[1]][1]
1412
)
1513

16-
citEntry(
17-
entry = 'book',
14+
bibentry(
15+
'book',
1816
title = 'bookdown: Authoring Books and Technical Documents with {R} Markdown',
1917
author = 'Yihui Xie',
2018
publisher = 'Chapman and Hall/CRC',
2119
address = 'Boca Raton, Florida',
2220
year = '2016',
2321
note = 'ISBN 978-1138700109',
24-
url = 'https://bookdown.org/yihui/bookdown',
25-
textVersion = paste(
26-
'Yihui Xie (2016).',
27-
'bookdown: Authoring Books and Technical Documents with R Markdown.',
28-
'Chapman and Hall/CRC. ISBN 978-1138700109'
29-
)
22+
url = 'https://bookdown.org/yihui/bookdown'
3023
)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy