diff -Nru r-cran-cliapp-0.1.0/debian/changelog r-cran-cliapp-0.1.1/debian/changelog --- r-cran-cliapp-0.1.0/debian/changelog 2020-05-31 05:51:03.000000000 +0000 +++ r-cran-cliapp-0.1.1/debian/changelog 2020-10-12 11:40:40.000000000 +0000 @@ -1,8 +1,9 @@ -r-cran-cliapp (0.1.0-2build1) groovy; urgency=medium +r-cran-cliapp (0.1.1-1) unstable; urgency=medium - * No-change rebuild against r-api-4.0 + * New upstream version + * debhelper-compat 13 (routine-update) - -- Graham Inggs Sun, 31 May 2020 05:51:03 +0000 + -- Andreas Tille Mon, 12 Oct 2020 13:40:40 +0200 r-cran-cliapp (0.1.0-2) unstable; urgency=medium diff -Nru r-cran-cliapp-0.1.0/debian/control r-cran-cliapp-0.1.1/debian/control --- r-cran-cliapp-0.1.0/debian/control 2020-05-18 12:19:01.000000000 +0000 +++ r-cran-cliapp-0.1.1/debian/control 2020-10-12 11:40:40.000000000 +0000 @@ -4,7 +4,7 @@ Section: gnu-r Testsuite: autopkgtest-pkg-r Priority: optional -Build-Depends: debhelper-compat (= 12), +Build-Depends: debhelper-compat (= 13), dh-r, r-base-dev, r-cran-cli, diff -Nru r-cran-cliapp-0.1.0/DESCRIPTION r-cran-cliapp-0.1.1/DESCRIPTION --- r-cran-cliapp-0.1.0/DESCRIPTION 2018-12-16 14:40:05.000000000 +0000 +++ r-cran-cliapp-0.1.1/DESCRIPTION 2020-10-07 11:00:02.000000000 +0000 @@ -1,6 +1,6 @@ Package: cliapp Title: Create Rich Command Line Applications -Version: 0.1.0 +Version: 0.1.1 Author: Gábor Csárdi Maintainer: Gábor Csárdi Description: Create rich command line applications, with colors, headings, @@ -9,12 +9,12 @@ LazyData: true URL: https://github.com/r-lib/cliapp#readme BugReports: https://github.com/r-lib/cliapp/issues -RoxygenNote: 6.1.1 +RoxygenNote: 7.1.1.9000 Imports: cli, crayon, fansi, glue (>= 1.3.0), prettycode, progress (>= 1.2.0), R6, selectr, utils, withr, xml2 Suggests: callr, covr, rstudioapi, testthat Encoding: UTF-8 NeedsCompilation: no -Packaged: 2018-12-05 09:41:39 UTC; gaborcsardi +Packaged: 2020-10-07 10:30:35 UTC; gaborcsardi Repository: CRAN -Date/Publication: 2018-12-16 14:40:05 UTC +Date/Publication: 2020-10-07 11:00:02 UTC diff -Nru r-cran-cliapp-0.1.0/man/cli_alert.Rd r-cran-cliapp-0.1.1/man/cli_alert.Rd --- r-cran-cliapp-0.1.0/man/cli_alert.Rd 2018-11-22 19:40:21.000000000 +0000 +++ r-cran-cliapp-0.1.1/man/cli_alert.Rd 2020-10-07 10:06:45.000000000 +0000 @@ -8,20 +8,39 @@ \alias{cli_alert_info} \title{CLI alerts} \usage{ -cli_alert(text, id = NULL, class = NULL, wrap = FALSE, - .envir = parent.frame()) +cli_alert(text, id = NULL, class = NULL, wrap = FALSE, .envir = parent.frame()) -cli_alert_success(text, id = NULL, class = NULL, wrap = FALSE, - .envir = parent.frame()) +cli_alert_success( + text, + id = NULL, + class = NULL, + wrap = FALSE, + .envir = parent.frame() +) -cli_alert_danger(text, id = NULL, class = NULL, wrap = FALSE, - .envir = parent.frame()) +cli_alert_danger( + text, + id = NULL, + class = NULL, + wrap = FALSE, + .envir = parent.frame() +) -cli_alert_warning(text, id = NULL, class = NULL, wrap = FALSE, - .envir = parent.frame()) +cli_alert_warning( + text, + id = NULL, + class = NULL, + wrap = FALSE, + .envir = parent.frame() +) -cli_alert_info(text, id = NULL, class = NULL, wrap = FALSE, - .envir = parent.frame()) +cli_alert_info( + text, + id = NULL, + class = NULL, + wrap = FALSE, + .envir = parent.frame() +) } \arguments{ \item{text}{Text of the alert.} diff -Nru r-cran-cliapp-0.1.0/man/cli_div.Rd r-cran-cliapp-0.1.1/man/cli_div.Rd --- r-cran-cliapp-0.1.0/man/cli_div.Rd 2018-11-23 09:34:01.000000000 +0000 +++ r-cran-cliapp-0.1.1/man/cli_div.Rd 2020-10-07 10:06:45.000000000 +0000 @@ -4,8 +4,13 @@ \alias{cli_div} \title{Generic CLI container} \usage{ -cli_div(id = NULL, class = NULL, theme = NULL, .auto_close = TRUE, - .envir = parent.frame()) +cli_div( + id = NULL, + class = NULL, + theme = NULL, + .auto_close = TRUE, + .envir = parent.frame() +) } \arguments{ \item{id}{Element id, a string. If \code{NULL}, then a new id is generated diff -Nru r-cran-cliapp-0.1.0/man/cli_dl.Rd r-cran-cliapp-0.1.1/man/cli_dl.Rd --- r-cran-cliapp-0.1.0/man/cli_dl.Rd 2018-11-22 19:40:21.000000000 +0000 +++ r-cran-cliapp-0.1.1/man/cli_dl.Rd 2020-10-07 10:06:45.000000000 +0000 @@ -4,8 +4,14 @@ \alias{cli_dl} \title{Definition list} \usage{ -cli_dl(items = NULL, id = NULL, class = NULL, .close = TRUE, - .auto_close = TRUE, .envir = parent.frame()) +cli_dl( + items = NULL, + id = NULL, + class = NULL, + .close = TRUE, + .auto_close = TRUE, + .envir = parent.frame() +) } \arguments{ \item{items}{Named character vector, or \code{NULL}. If not \code{NULL}, they diff -Nru r-cran-cliapp-0.1.0/man/cli_it.Rd r-cran-cliapp-0.1.1/man/cli_it.Rd --- r-cran-cliapp-0.1.0/man/cli_it.Rd 2018-11-22 19:40:21.000000000 +0000 +++ r-cran-cliapp-0.1.1/man/cli_it.Rd 2020-10-07 10:06:45.000000000 +0000 @@ -4,8 +4,13 @@ \alias{cli_it} \title{CLI list item(s)} \usage{ -cli_it(items = NULL, id = NULL, class = NULL, .auto_close = TRUE, - .envir = parent.frame()) +cli_it( + items = NULL, + id = NULL, + class = NULL, + .auto_close = TRUE, + .envir = parent.frame() +) } \arguments{ \item{items}{Character vector of items, or \code{NULL}.} diff -Nru r-cran-cliapp-0.1.0/man/cli_ol.Rd r-cran-cliapp-0.1.1/man/cli_ol.Rd --- r-cran-cliapp-0.1.0/man/cli_ol.Rd 2018-11-22 19:40:21.000000000 +0000 +++ r-cran-cliapp-0.1.1/man/cli_ol.Rd 2020-10-07 10:06:45.000000000 +0000 @@ -4,8 +4,14 @@ \alias{cli_ol} \title{Ordered CLI list} \usage{ -cli_ol(items = NULL, id = NULL, class = NULL, .close = TRUE, - .auto_close = TRUE, .envir = parent.frame()) +cli_ol( + items = NULL, + id = NULL, + class = NULL, + .close = TRUE, + .auto_close = TRUE, + .envir = parent.frame() +) } \arguments{ \item{items}{If not \code{NULL}, then a character vector. Each element of diff -Nru r-cran-cliapp-0.1.0/man/cli_par.Rd r-cran-cliapp-0.1.1/man/cli_par.Rd --- r-cran-cliapp-0.1.0/man/cli_par.Rd 2018-11-22 19:40:21.000000000 +0000 +++ r-cran-cliapp-0.1.1/man/cli_par.Rd 2020-10-07 10:06:45.000000000 +0000 @@ -4,8 +4,7 @@ \alias{cli_par} \title{CLI paragraph} \usage{ -cli_par(id = NULL, class = NULL, .auto_close = TRUE, - .envir = parent.frame()) +cli_par(id = NULL, class = NULL, .auto_close = TRUE, .envir = parent.frame()) } \arguments{ \item{id}{Element id, a string. If \code{NULL}, then a new id is generated diff -Nru r-cran-cliapp-0.1.0/man/cli_progress_bar.Rd r-cran-cliapp-0.1.1/man/cli_progress_bar.Rd --- r-cran-cliapp-0.1.0/man/cli_progress_bar.Rd 2018-11-22 19:40:21.000000000 +0000 +++ r-cran-cliapp-0.1.1/man/cli_progress_bar.Rd 2020-10-07 10:10:40.000000000 +0000 @@ -18,10 +18,12 @@ A progress bar using the progress package } \examples{ +\dontshow{if (!cliapp:::is_cran_check()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} { p <- cli_progress_bar(total = 10) cli_alert_info("Starting computation") for (i in 1:10) { p$tick(); Sys.sleep(0.2) } cli_alert_success("Done") } +\dontshow{\}) # examplesIf} } diff -Nru r-cran-cliapp-0.1.0/man/cli_ul.Rd r-cran-cliapp-0.1.1/man/cli_ul.Rd --- r-cran-cliapp-0.1.0/man/cli_ul.Rd 2018-11-22 19:40:21.000000000 +0000 +++ r-cran-cliapp-0.1.1/man/cli_ul.Rd 2020-10-07 10:06:45.000000000 +0000 @@ -4,8 +4,14 @@ \alias{cli_ul} \title{Unordered CLI list} \usage{ -cli_ul(items = NULL, id = NULL, class = NULL, .close = TRUE, - .auto_close = TRUE, .envir = parent.frame()) +cli_ul( + items = NULL, + id = NULL, + class = NULL, + .close = TRUE, + .auto_close = TRUE, + .envir = parent.frame() +) } \arguments{ \item{items}{If not \code{NULL}, then a character vector. Each element of diff -Nru r-cran-cliapp-0.1.0/man/cli_verbatim.Rd r-cran-cliapp-0.1.1/man/cli_verbatim.Rd --- r-cran-cliapp-0.1.0/man/cli_verbatim.Rd 2018-11-22 19:40:21.000000000 +0000 +++ r-cran-cliapp-0.1.1/man/cli_verbatim.Rd 2020-10-07 10:06:45.000000000 +0000 @@ -16,5 +16,5 @@ It is not wrapped, but printed as is. } \examples{ -cli_verbatim("This has\\nthree", "lines") +cli_verbatim("This has\nthree", "lines") } diff -Nru r-cran-cliapp-0.1.0/man/inline-markup.Rd r-cran-cliapp-0.1.1/man/inline-markup.Rd --- r-cran-cliapp-0.1.0/man/inline-markup.Rd 2018-11-22 19:40:21.000000000 +0000 +++ r-cran-cliapp-0.1.1/man/inline-markup.Rd 2020-10-07 10:06:45.000000000 +0000 @@ -15,20 +15,20 @@ In addition to regular glue interpolation, cliapp can also add classes to parts of the text, and these classes can be used in themes. For -example\preformatted{cli_text("This is {emph important}.") +example\preformatted{cli_text("This is \{emph important\}.") } adds a class to the "important" word, class "emph". Note that in this cases the string within the braces is not a valid R expression. If you want to mix classes with interpolation, add another pair of braces:\preformatted{adjective <- "great" -cli_text("This is {emph {adjective}}.") +cli_text("This is \{emph \{adjective\}\}.") } An inline class will always create a \code{span} element internally. So in themes, you can use the \code{span.emph} CSS selector to change how inline text is emphasized:\preformatted{cli_div(theme = list(span.emph = list(color = "red"))) adjective <- "nice and red" -cli_text("This is {emph {adjective}}.") +cli_text("This is \{emph \{adjective\}\}.") } } diff -Nru r-cran-cliapp-0.1.0/man/simple_theme.Rd r-cran-cliapp-0.1.1/man/simple_theme.Rd --- r-cran-cliapp-0.1.0/man/simple_theme.Rd 2018-11-23 10:20:52.000000000 +0000 +++ r-cran-cliapp-0.1.1/man/simple_theme.Rd 2020-10-07 10:10:40.000000000 +0000 @@ -25,6 +25,7 @@ } } \examples{ +\dontshow{if (!cliapp:::is_cran_check()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} cli_div(theme = cliapp::simple_theme()) cli_h1("Header 1") @@ -64,6 +65,7 @@ cli_end() cli_end() +\dontshow{\}) # examplesIf} } \seealso{ \link{themes}, \code{\link[=builtin_theme]{builtin_theme()}}. diff -Nru r-cran-cliapp-0.1.0/man/start_app.Rd r-cran-cliapp-0.1.1/man/start_app.Rd --- r-cran-cliapp-0.1.0/man/start_app.Rd 2018-11-23 09:54:00.000000000 +0000 +++ r-cran-cliapp-0.1.1/man/start_app.Rd 2020-10-07 10:06:45.000000000 +0000 @@ -6,8 +6,12 @@ \alias{default_app} \title{Start, stop, query the default cli application} \usage{ -start_app(theme = getOption("cli.theme"), output = c("message", - "stdout"), .auto_close = TRUE, .envir = parent.frame()) +start_app( + theme = getOption("cli.theme"), + output = c("message", "stdout"), + .auto_close = TRUE, + .envir = parent.frame() +) stop_app(app = NULL) diff -Nru r-cran-cliapp-0.1.0/man/themes.Rd r-cran-cliapp-0.1.1/man/themes.Rd --- r-cran-cliapp-0.1.0/man/themes.Rd 2018-11-23 10:17:32.000000000 +0000 +++ r-cran-cliapp-0.1.1/man/themes.Rd 2020-10-07 10:06:45.000000000 +0000 @@ -44,7 +44,7 @@ \section{CSS pseudo elements}{ -Currently only the \code{::before} and \code{::after} pseudo elements are +Currently only the \verb{::before} and \verb{::after} pseudo elements are supported. } @@ -61,7 +61,7 @@ Right now only a limited set of properties are supported. These include left, right, top and bottom margins, background and foreground colors, bold and italic fonts, underlined text. The \code{content} property is -supported to insert text via \code{::before} and \code{::after} selectors. +supported to insert text via \verb{::before} and \verb{::after} selectors. More properties might be adder later. diff -Nru r-cran-cliapp-0.1.0/MD5 r-cran-cliapp-0.1.1/MD5 --- r-cran-cliapp-0.1.0/MD5 2018-12-16 14:40:05.000000000 +0000 +++ r-cran-cliapp-0.1.1/MD5 2020-10-07 11:00:02.000000000 +0000 @@ -1,40 +1,40 @@ -6bd2222a39369229a01f647a09b32438 *DESCRIPTION +eb1ac28c80bd19ce5b27016ba6af2e09 *DESCRIPTION db8df6852a9a4942bd575b66a884b35e *LICENSE 3419b99d49f09d8236514a372f51d79d *NAMESPACE -0c09a262b53f02936bd37ea222c25ec3 *NEWS.md +d0672df8ca8e021b807d2435957217b5 *NEWS.md 9f680c4d6576d82ce38d96654bcc2a38 *R/cli.R -e585390d0d3bf47dd4a9ee4fea1bf98c *R/client.R -d129b53ee3c0c3145d143ee015cc7fea *R/containers.R +d7747b37918ed2365990a293e1e9209d *R/client.R +d4e9589c86b07135a9478bcd2434b3de *R/containers.R 9be2a5f01ef3c3fac94127fe1acc5e4d *R/docs.R 1e699fbc79237e169a98b02c984d8d4d *R/html-readme.R af68fa2fd00027a3faa8b3071233f92f *R/inline.R c6b93e66659e6b80afbbd4d36ab83bd7 *R/internals.R ff681a26e738a802bd685bd2961a5039 *R/lorem.R -32ffb08b5d552e22789474ecfa717e3d *R/package.R +b9dc541317884a88004985c2a74ab563 *R/package.R 159057ceced58d35220d687c6c328224 *R/progress-bar.R 35592b45641d2b147f2d369e5eca46df *R/server.R -cf153ddf7f5f4462c3cd74bec971ad61 *R/simple-theme.R +0226be96b882de5eca3a866d89ce4f24 *R/simple-theme.R 356cb8effff00bf781f1d8a725210596 *R/themes.R -ceb6bb3da82c55a1ff1f0968a154bfcb *R/utils.R +b81e8b7131656c4fe2d2a0a1188b0a07 *R/utils.R f854e6ecceade5a650a56a9a87a49ba2 *R/width.R -4af238cb87bc49e1294f90aa5c6227ce *README.md +8f33a6c3095d86dd39726c3012ef58c2 *README.md d0a0726da9ccde178a89b7b47a7bda38 *inst/scripts/news.R 8d879471914c9df43ab46d42e5b81ec2 *inst/scripts/outdated.R 0ca0af9956bd9fc2b073053942e092be *inst/scripts/search.R f8e88581365bd3ac8cc9702c44cfd4b5 *inst/scripts/up.R ee02f4443aa4522aaa539e6e7a6a485f *man/builtin_theme.Rd -9ace4754055e9af396d2b6f0660fec77 *man/cli_alert.Rd -eaad7699839ecaefe532316c5b606abc *man/cli_div.Rd -6fda3dd1591179ce91b043f477192d96 *man/cli_dl.Rd +200a9d6d2f27d8a6bde72d3d972b7fdb *man/cli_alert.Rd +84f579174918a544813da3c55986f19a *man/cli_div.Rd +ae396610eb934093458370c7b5b96ae4 *man/cli_dl.Rd c6127837fd5c80513c82b4073e689054 *man/cli_end.Rd e963177a506eac0c1a00c03014bcc2d5 *man/cli_h1.Rd -0e0b2a42825c8c5c7a695cfde65dacfd *man/cli_it.Rd -ba14bd819ddaad138404897286bcb68d *man/cli_ol.Rd -ec8dac8d8338ffd9df7fc60f57e1ef26 *man/cli_par.Rd -ac6e96ca84c0873b0ea2e1c9d41db766 *man/cli_progress_bar.Rd +a2d80e78fb97a72e707b47b6f1ce8b9b *man/cli_it.Rd +01050712ceba74aadbc31d31c17ea719 *man/cli_ol.Rd +79b5e0b999a5d4357276bd47801023e5 *man/cli_par.Rd +66278bd25d1974972c346343520d882b *man/cli_progress_bar.Rd 77e203ddd2cfd65b0b1886799d39d867 *man/cli_text.Rd -5b1a5947feedc42998265d8052e1e830 *man/cli_ul.Rd -70da10c978a278924f0294553ea76310 *man/cli_verbatim.Rd +0a7218fd7febe0d3c5cb6b3d1b5a6e9e *man/cli_ul.Rd +d025a5e0a425a2952a079b4052dc517b *man/cli_verbatim.Rd 2a6f528b256176ede3eb7ea569dee97e *man/cliapp.Rd af2b8af7935f0dacce4f41f646885a85 *man/console_width.Rd ef46676fd502a3c043229a85623870b0 *man/containers.Rd @@ -48,10 +48,10 @@ d6f003cd105b7ebd5115fd19b05b6665 *man/figures/headings-3.png dfa924577d3ecbfad57d06ee1daadc21 *man/figures/inline-markup-1.png a7a54373cf52b94bc9dd9f4d970c4592 *man/figures/lists-1.png -7479c2468fe123b6cca32f557631043a *man/inline-markup.Rd -558e0bf46790c1c1bccacc74f39b3fce *man/simple_theme.Rd -fc2f836a475c1a7190a6f9e5ef28415d *man/start_app.Rd -0a655fa124d9d43957d3febb042e93c5 *man/themes.Rd +efc34d9e8dfed3142960ad7bd8f7efc6 *man/inline-markup.Rd +41c9302ca5b988624285b559e5e337d7 *man/simple_theme.Rd +2ee6d4a26a15ecb9ff32cac4538d2ce2 *man/start_app.Rd +a0a38ad985292ea41fe42370244ca768 *man/themes.Rd 7cc6a3e1700de623eea1f2835d5f4438 *tests/testthat.R 8f2e27f155bd4812490a2ad59af15281 *tests/testthat/helper.R 754ba49173a37dc068cc151e0798039d *tests/testthat/test-alerts.R @@ -64,4 +64,4 @@ d233d66c7d64c75b861c99f83c820862 *tests/testthat/test-subprocess.R c971bd6c1ec5e354df75164b4586249d *tests/testthat/test-substitution.R bbb435c5bd6e5e70276ad3f4c48e7905 *tests/testthat/test-text.R -07d96b5ee7da1eac6c83f06291938893 *tests/testthat/test-themes.R +1fdee2be356fd981d96cd6bef6334840 *tests/testthat/test-themes.R diff -Nru r-cran-cliapp-0.1.0/NEWS.md r-cran-cliapp-0.1.1/NEWS.md --- r-cran-cliapp-0.1.0/NEWS.md 2018-12-05 09:39:45.000000000 +0000 +++ r-cran-cliapp-0.1.1/NEWS.md 2020-10-07 10:30:24.000000000 +0000 @@ -1,4 +1,11 @@ +# 0.1.1 + +* cliapp is superseded, and we focus on the cli package now. + +* Fix a potential error when text is outputted without an + enclosing container. + # 0.1.0 First public release. diff -Nru r-cran-cliapp-0.1.0/R/client.R r-cran-cliapp-0.1.1/R/client.R --- r-cran-cliapp-0.1.0/R/client.R 2018-11-23 09:32:29.000000000 +0000 +++ r-cran-cliapp-0.1.1/R/client.R 2020-10-07 10:07:46.000000000 +0000 @@ -398,7 +398,7 @@ #' as [progress::progress_bar], see examples below. #' #' @export -#' @examples +#' @examplesIf !cliapp:::is_cran_check() #' { #' p <- cli_progress_bar(total = 10) #' cli_alert_info("Starting computation") diff -Nru r-cran-cliapp-0.1.0/R/containers.R r-cran-cliapp-0.1.1/R/containers.R --- r-cran-cliapp-0.1.0/R/containers.R 2018-11-22 19:40:21.000000000 +0000 +++ r-cran-cliapp-0.1.1/R/containers.R 2020-10-07 09:34:25.000000000 +0000 @@ -63,7 +63,7 @@ rm(cnt) ## Bottom margin - del_from <- match(id, names(private$state$matching_styles)) + del_from <- match(id, names(private$state$matching_styles) %||% character()) bottom <- max(viapply( private$state$styles[del_from:length(private$state$styles)], function(x) as.integer(x$main$`margin-bottom` %||% 0L) diff -Nru r-cran-cliapp-0.1.0/R/package.R r-cran-cliapp-0.1.1/R/package.R --- r-cran-cliapp-0.1.0/R/package.R 2018-11-23 09:53:10.000000000 +0000 +++ r-cran-cliapp-0.1.1/R/package.R 2020-10-07 09:19:24.000000000 +0000 @@ -80,7 +80,7 @@ if (!inherits(app, "cliapp")) stop("Not a CLI app") ndl <- format.default(app) nms <- vapply(cliappenv$stack, format.default, character(1)) - if (! ndl %in% app) { + if (! ndl %in% nms) { warning("No app to end") return() } diff -Nru r-cran-cliapp-0.1.0/R/simple-theme.R r-cran-cliapp-0.1.1/R/simple-theme.R --- r-cran-cliapp-0.1.0/R/simple-theme.R 2018-11-23 10:20:45.000000000 +0000 +++ r-cran-cliapp-0.1.1/R/simple-theme.R 2020-10-07 10:08:04.000000000 +0000 @@ -22,7 +22,7 @@ #' #' @seealso [themes], [builtin_theme()]. #' @export -#' @examples +#' @examplesIf !cliapp:::is_cran_check() #' cli_div(theme = cliapp::simple_theme()) #' #' cli_h1("Header 1") diff -Nru r-cran-cliapp-0.1.0/R/utils.R r-cran-cliapp-0.1.1/R/utils.R --- r-cran-cliapp-0.1.0/R/utils.R 2018-11-22 19:40:21.000000000 +0000 +++ r-cran-cliapp-0.1.1/R/utils.R 2020-10-07 10:08:22.000000000 +0000 @@ -52,3 +52,11 @@ unlist(r, use.names = FALSE) } + +is_cran_check <- function() { + if (identical(Sys.getenv("NOT_CRAN"), "true")) { + FALSE + } else { + Sys.getenv("_R_CHECK_PACKAGE_NAME_", "") != "" + } +} diff -Nru r-cran-cliapp-0.1.0/README.md r-cran-cliapp-0.1.1/README.md --- r-cran-cliapp-0.1.0/README.md 2018-11-23 11:31:51.000000000 +0000 +++ r-cran-cliapp-0.1.1/README.md 2020-10-07 10:30:24.000000000 +0000 @@ -4,11 +4,11 @@ > Create Rich Command Line Applications -[![lifecycle](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://tidyverse.org/lifecycle/#maturing) +[![lifecycle](https://img.shields.io/badge/lifecycle-superseded-blue.svg)](https://www.tidyverse.org/lifecycle/) [![Linux Build Status](https://travis-ci.org/r-lib/cliapp.svg?branch=master)](https://travis-ci.org/r-lib/cliapp) [![Windows Build status](https://ci.appveyor.com/api/projects/status/github/r-lib/cliapp?svg=true)](https://ci.appveyor.com/project/gaborcsardi/cliapp) -[![](http://www.r-pkg.org/badges/version/cliapp)](http://www.r-pkg.org/pkg/cliapp) -[![CRAN RStudio mirror downloads](http://cranlogs.r-pkg.org/badges/cliapp)](http://www.r-pkg.org/pkg/cliapp) +[![](https://www.r-pkg.org/badges/version/cliapp)](https://www.r-pkg.org/pkg/cliapp) +[![CRAN RStudio mirror downloads](https://cranlogs.r-pkg.org/badges/cliapp)](https://www.r-pkg.org/pkg/cliapp) [![Coverage Status](https://img.shields.io/codecov/c/github/r-lib/cliapp/master.svg)](https://codecov.io/github/r-lib/cliapp?branch=master) Create rich command line applications, with colors, headings, lists, alerts, @@ -16,6 +16,11 @@ --- +## Superseded + +This package is superseded, and we focus on the cli package now: +https://github.com/r-lib/cli + ## Installation ``` r diff -Nru r-cran-cliapp-0.1.0/tests/testthat/test-themes.R r-cran-cliapp-0.1.1/tests/testthat/test-themes.R --- r-cran-cliapp-0.1.0/tests/testthat/test-themes.R 2018-11-23 10:18:37.000000000 +0000 +++ r-cran-cliapp-0.1.1/tests/testthat/test-themes.R 2020-10-07 09:34:39.000000000 +0000 @@ -1,6 +1,4 @@ -context("cli themes") - setup(start_app()) teardown(stop_app()) @@ -53,12 +51,10 @@ start_app(theme = custom) out <- capt0(cli_alert("Alert!")) expect_match(out, "custom:") - stop_app() withr::with_options(list(cli.user_theme = override), { start_app(theme = custom) out <- capt0(cli_alert("Alert!")) expect_match(out, "override:") - stop_app() }) })