From 70058cf4b4d48b09b95fb21b33c540d9d3edeadf Mon Sep 17 00:00:00 2001 From: Jan Marvin Garbuszus Date: Wed, 1 May 2024 11:29:43 +0200 Subject: [PATCH] Release 1.6 (#1008) * bump version * redoc --- DESCRIPTION | 2 +- NEWS.md | 6 +++--- man/convert_date.Rd | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 1a3632638..0527704fc 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Type: Package Package: openxlsx2 Title: Read, Write and Edit 'xlsx' Files -Version: 1.5.0.9000 +Version: 1.6 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 ff9d6f693..e6240b7d8 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,4 @@ -# openxlsx2 (development version) +# openxlsx2 1.6 ## New features @@ -17,7 +17,7 @@ wb$add_data(dims = "I2:J2;A1:B2;G5:H6", x = matrix(1:8, 4, 2), enforce = TRUE) * Allow writing data frames with zero rows. [987](https://github.com/JanMarvin/openxlsx2/pull/987) -* `wb_dims()` has been improved and is safer on 0-length inputs. In particular, it will error for a case where a `cols` doesn't exist in `x` +* `wb_dims()` has been improved and is safer on 0-length inputs. In particular, it will error for a case where a `cols` doesn't exist in `x` ([990](https://github.com/JanMarvin/openxlsx2/pull/990), @olivroy). ```r # Previously created a wrong dims @@ -25,7 +25,7 @@ wb_dims(x = mtcars, cols = "non-existent-col") # Now errors ``` -* `wb_set_col_widths()` is more strict about its arguments. If you provide `cols`, `widths`, or `hidden` don't have appropriate length, it will throw a warning. This may change to an error in the future, so it is recommended to use appropriate values. +* `wb_set_col_widths()` is more strict about its arguments. If you provide `cols`, `widths`, or `hidden` don't have appropriate length, it will throw a warning. This may change to an error in the future, so it is recommended to use appropriate values. ([991](https://github.com/JanMarvin/openxlsx2/pull/991), @olivroy). *************************************************************************** diff --git a/man/convert_date.Rd b/man/convert_date.Rd index 8380bc462..6e5159ff7 100644 --- a/man/convert_date.Rd +++ b/man/convert_date.Rd @@ -20,7 +20,8 @@ convert_hms(x) \item{...}{ Arguments passed on to \code{\link[base:as.Date]{base::as.Date.character}} \describe{ - \item{\code{format}}{\code{\link[base]{character}} string. If not specified, it will try + \item{\code{format}}{a \code{\link[base]{character}} string. If not specified when + converting from a character representation, it will try \code{tryFormats} one by one on the first non-\code{NA} element, and give an error if none works. Otherwise, the processing is via \code{\link[base]{strptime}()} whose help page describes available