Skip to content

Commit

Permalink
Release 1.9 (#1129)
Browse files Browse the repository at this point in the history
* bump version

* [vignette] fix building vignette, when offline
  • Loading branch information
JanMarvin authored Sep 8, 2024
1 parent 5d432e9 commit e3257c3
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -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")),
Expand Down
11 changes: 9 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
# openxlsx2 (development version)
# openxlsx2 1.9

## New features

* Experimental support for shared formulas. Similar to spreadsheet software, when a cell is dragged to horizontally or vertically. This requires the formula to be written only for a single cell and it is filled by spreadsheet software for the remaining dimensions. `wb_add_formula()` gained a new argument `shared`. [1074](https://github.com/JanMarvin/openxlsx2/pull/1074)

* 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)


***************************************************************************

Expand Down
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions vignettes/conditional-formatting.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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(
Expand Down

0 comments on commit e3257c3

Please sign in to comment.