Skip to content

Commit a760cfb

Browse files
Merge pull request #1039 from r-lib/pkgapi
Only run {pkgapi} if available
2 parents 774208d + 3251ea7 commit a760cfb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

DESCRIPTION

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@ Suggests:
4949
VignetteBuilder:
5050
knitr
5151
Encoding: UTF-8
52-
Roxygen: list(markdown = TRUE, roclets = c("rd", "namespace", "collate",
53-
"pkgapi::api_roclet"))
52+
Roxygen: list(markdown = TRUE, roclets = c( "rd", "namespace", "collate",
53+
if (rlang::is_installed("pkgapi")) "pkgapi::api_roclet" else {
54+
warning("Please install r-lib/pkgapi to make sure the file API is kept
55+
up to date"); NULL}))
5456
RoxygenNote: 7.2.1
5557
Config/testthat/edition: 3
5658
Config/testthat/parallel: true

0 commit comments

Comments
 (0)