From f96a280e4f34b0d8f4c96d23438af81e2fa889b6 Mon Sep 17 00:00:00 2001 From: pvictor Date: Thu, 1 Sep 2022 15:25:06 +0200 Subject: [PATCH] prepare for CRAN --- DESCRIPTION | 2 +- NEWS.md | 9 ++++++--- R/esquisser.R | 7 +++---- cran-comments.md | 4 ++-- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index f439eeb0..f24f0f03 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: esquisse Type: Package Title: Explore and Visualize Your Data Interactively -Version: 1.1.1.9000 +Version: 1.1.2 Authors@R: c(person("Fanny", "Meyer", role = c("aut")), person("Victor", "Perrier", email = "victor.perrier@dreamrs.fr", role = c("aut", "cre")), person("Ian", "Carroll", comment = "Faceting support", role = "ctb"), diff --git a/NEWS.md b/NEWS.md index 03cfc568..b504bd0d 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,15 +1,18 @@ -# esquisse (unreleased) +# esquisse 1.1.2 -* New translations added: +* i18n: new translations added: + turkish, activate with `set_i18n("tr")`, thanks to [@sbalci](https://github.com/sbalci) + italian, activate with `set_i18n("it")`, thanks to [@SantiagoGiordano](https://github.com/SantiagoGiordano) + + chinese, activate with `set_i18n("cn")`, thanks to [@xmusphlkg](https://github.com/xmusphlkg) + + korean, activate with `set_i18n("kr")`, thanks to [@ChangwooLim](https://github.com/ChangwooLim) +* Bootstrap 5 support. # esquisse 1.1.1 * Play/Pause button is back: it allow to set reactivity in "pause" when doing multiple changes, and so avoiding to render intermediate plots. -* New translations added: +* i18n: new translations added: + spanish, activate with `set_i18n("es")`, thanks to [@dnldelarosa](https://github.com/dnldelarosa) + albanian (updated), activate with `set_i18n("al")`, thanks to [@EGjika](https://github.com/EGjika) + portuguese, activate with `set_i18n("pt")`, thanks to [@mribeirodantas](https://github.com/mribeirodantas) diff --git a/R/esquisser.R b/R/esquisser.R index 7d0ce2dd..8533df8a 100644 --- a/R/esquisser.R +++ b/R/esquisser.R @@ -4,7 +4,7 @@ #' @title An add-in to easily create plots with ggplot2 -#' +#' #' @description Select data to be used and map variables to aesthetics to produce a chart, #' customize common elements and get code to reproduce the chart. #' @@ -46,7 +46,7 @@ esquisser <- function(data = NULL, controls = c("labs", "parameters", "appearance", "filters", "code"), viewer = getOption(x = "esquisse.viewer", default = "dialog")) { viewer <- match.arg(viewer, choices = c("dialog", "pane", "browser")) - + if (!rstudioapi::isAvailable("1.2")) { warning("Esquisse may not work properly, try updating RStudio.", call. = FALSE) } @@ -67,8 +67,7 @@ esquisser <- function(data = NULL, } else { inviewer <- dialogViewer( paste( - "Les grandes personnes ne comprennent jamais rien toutes seules, et c'est fatigant,", - "pour les enfants, de toujours et toujours leur donner des explications." + "Le petit prince, qui me posait beaucoup de questions, ne semblait jamais entendre les miennes." ), width = 1100, height = 750 diff --git a/cran-comments.md b/cran-comments.md index 8a379ba2..05f7c1e3 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -1,6 +1,6 @@ ## Test environments -* local R installation, R 4.1.2 -* ubuntu 20.04, Windows 10, macOS (on GitHub Actions), R 4.2.0 +* local Ubuntu 22.04.1 LTS install, R 4.2.1 +* ubuntu 20.04, Windows 10, macOS (on GitHub Actions), R 4.2.1 * win-builder (devel) ## R CMD check results