Skip to content

Commit

Permalink
Merge pull request #495 from ycphs/4.2.7
Browse files Browse the repository at this point in the history
4.2.7
  • Loading branch information
JanMarvin authored Aug 30, 2024
2 parents 8b30da6 + c44aa36 commit dd19b3c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Type: Package
Package: openxlsx
Title: Read, Write and Edit xlsx Files
Version: 4.2.6.9000
Date: 2024-08-01
Version: 4.2.7
Date: 2024-08-30
Authors@R:
c(person(given = "Philipp",
family = "Schauberger",
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# openxlsx (development version)
# openxlsx 4.2.7

* Fixed warning on `dataValidation(..., type = "list")` ([#342](https://github.com/ycphs/openxlsx/issues/342))
* Added optional argument to `loadWorkbook` to decide if empty/blank cells should be converted to NA_character_ (the default) or left blank as is
Expand Down
4 changes: 3 additions & 1 deletion inst/WORDLIST
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Arial
Breuer
CMD
Calibri
Calligra
Expand All @@ -12,7 +13,6 @@ Generalised
Gnumeric
Italicise
JIS
Kainhofer
LONGDATE
LastModifiedBy
Libreoffice
Expand Down Expand Up @@ -59,6 +59,7 @@ dateFormat
datetime
datetimeFormat
datetimes
detectDates
dev
df
eg
Expand Down Expand Up @@ -89,6 +90,7 @@ loadWorkbook
maxWidth
minWidth
na
nestings
notBetween
notBlanks
notContains
Expand Down
10 changes: 5 additions & 5 deletions vignettes/Formatting.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ vignette: >
library(openxlsx)
```

```{r include = TRUE, tidy = TRUE, eval = FALSE, highlight = TRUE}
```{r include = TRUE, eval = FALSE, highlight = TRUE}
## data.frame to write
df <- data.frame("Date" = Sys.Date()-0:4,
"Logical" = c(TRUE, FALSE, TRUE, TRUE, FALSE),
Expand Down Expand Up @@ -79,7 +79,7 @@ The 'tableStyle' argument in writeDataTable can be any of the predefined tableSt

## Date Formatting

```{r include = TRUE, tidy = TRUE, eval = FALSE, highlight = TRUE}
```{r include = TRUE, eval = FALSE, highlight = TRUE}
# data.frame of dates
dates <- data.frame("d1" = Sys.Date() - 0:4)
for(i in 1:3) dates <- cbind(dates, dates)
Expand Down Expand Up @@ -140,7 +140,7 @@ saveWorkbook(wb, "Date Formatting.xlsx", overwrite = TRUE)
The conversion from POSIX to Excel datetimes is dependent on the timezone you are in.
If POSIX values are being written incorrectly, try setting the timezone with (for example)

```{r include = TRUE,tidy = TRUE, eval = FALSE, highlight = TRUE}
```{r include = TRUE, eval = FALSE, highlight = TRUE}
Sys.setenv(TZ = "Australia/Sydney")
dateTimes <- data.frame("d1" = Sys.time() - 0:4*10000)
Expand Down Expand Up @@ -190,7 +190,7 @@ openXL("DateTime Formatting.xlsx")

## Conditional Formatting

```{r include = TRUE, tidy = TRUE, eval = FALSE, highlight = TRUE}
```{r include = TRUE, eval = FALSE, highlight = TRUE}
wb <- createWorkbook()
addWorksheet(wb, "cellIs")
addWorksheet(wb, "Moving Row")
Expand Down Expand Up @@ -266,7 +266,7 @@ openXL(wb)
numeric columns styling can be set using the numFmt parameter in createStyle or a default can be
set with, for example, options("openxlsx.numFmt" = "#,#0.00")

```{r include = TRUE, tidy = TRUE, eval = FALSE, highlight = TRUE}
```{r include = TRUE, eval = FALSE, highlight = TRUE}
options("openxlsx.numFmt" = NULL)
wb <- createWorkbook()
addWorksheet(wb, "Sheet 1")
Expand Down

0 comments on commit dd19b3c

Please sign in to comment.