From e3257c324e3aba4411b7917a27a8271f687f7f17 Mon Sep 17 00:00:00 2001 From: Jan Marvin Garbuszus Date: Sun, 8 Sep 2024 10:03:00 +0200 Subject: [PATCH] Release 1.9 (#1129) * bump version * [vignette] fix building vignette, when offline --- DESCRIPTION | 2 +- NEWS.md | 11 +++++++++-- README.Rmd | 2 +- README.md | 2 +- vignettes/conditional-formatting.Rmd | 4 ++-- 5 files changed, 14 insertions(+), 7 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 3e44e990d..486c5f95f 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Type: Package Package: openxlsx2 Title: Read, Write and Edit 'xlsx' Files -Version: 1.8.0.9000 +Version: 1.9 Language: en-US Authors@R: c( person("Jordan Mark", "Barbone", email = "jmbarbone@gmail.com", role = "aut", comment = c(ORCID = "0000-0001-9788-3628")), diff --git a/NEWS.md b/NEWS.md index 9d3bfcc9b..083e86d98 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,4 @@ -# openxlsx2 (development version) +# openxlsx2 1.9 ## New features @@ -6,11 +6,18 @@ * Experimental support for reading shared formulas. If `show_formula` is used with `wb_to_df()`, we try to show the value that is shown in spreadsheet software. [1091](https://github.com/JanMarvin/openxlsx2/pull/1091) +* It is possible to read cells containing formulas as formula. [1103](https://github.com/JanMarvin/openxlsx2/pull/1103) + ## Fixes +* If a font unknown to `openxlsx2` is used `wb_set_col_widths()` defaults to using the workbooks default font. [1080](https://github.com/JanMarvin/openxlsx2/pull/1080) + * Previously, if only `cols` and `rows` were passed to `wb_dims()` and row `1` was selected, incorrect results were returned. This has been fixed. [1094](https://github.com/JanMarvin/openxlsx2/pull/1094) -* `wb_dims()` no longer ignores `above`, `below`, `left`, `right` if `from_dims` is not supplied [1104](https://github.com/JanMarvin/openxlsx2/pull/1104) +* `wb_dims()` no longer ignores `above`, `below`, `left`, `right` if `from_dims` is not supplied. [1104](https://github.com/JanMarvin/openxlsx2/pull/1104) + +* `wb_to_df()` with `skip_hidden_rows = TRUE` works now if a file path is passed. [1122](https://github.com/JanMarvin/openxlsx2/pull/1122) + *************************************************************************** diff --git a/README.Rmd b/README.Rmd index e69bfd6a4..6015c2dfc 100644 --- a/README.Rmd +++ b/README.Rmd @@ -41,7 +41,7 @@ You can install the development version of `openxlsx2` from [GitHub](https://git remotes::install_github("JanMarvin/openxlsx2") ``` -Or from [r-universe](https://r-universe.dev/) with: +Or from [r-universe](https://janmarvin.r-universe.dev/openxlsx2) with: ```R # Enable repository from janmarvin options(repos = c( diff --git a/README.md b/README.md index ee54fad8f..28d4554f9 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ You can install the development version of `openxlsx2` from remotes::install_github("JanMarvin/openxlsx2") ``` -Or from [r-universe](https://r-universe.dev/) with: +Or from [r-universe](https://janmarvin.r-universe.dev/openxlsx2) with: ``` r # Enable repository from janmarvin diff --git a/vignettes/conditional-formatting.Rmd b/vignettes/conditional-formatting.Rmd index a6ef80a7a..ab56399ab 100644 --- a/vignettes/conditional-formatting.Rmd +++ b/vignettes/conditional-formatting.Rmd @@ -235,7 +235,7 @@ wb$add_conditional_formatting( knitr::include_graphics("img/cf_color_scale.jpg") ``` -```{r} +```{r eval=FALSE} df <- read_xlsx("https://github.com/JanMarvin/openxlsx-data/raw/main/readTest.xlsx", sheet = 5) wb$add_worksheet("colorScale", zoom = 30) wb$add_data(x = df, col_names = FALSE) ## write data.frame @@ -244,7 +244,7 @@ wb$add_data(x = df, col_names = FALSE) ## write data.frame Rule is a vector or colors of length 2 or 3 (any hex color or any of `colors()`). If rule is `NULL`, min and max of cells is used. Rule must be the same length as style or L. -```{r} +```{r eval=FALSE} wb$add_conditional_formatting( sheet = "colorScale", dims = wb_dims(