Skip to content

Releases: JanMarvin/openxlsx2

v1.12

19 Dec 12:26
Compare
Choose a tag to compare

Release 1.12 is a feature-packed release with many improvements, bug fixes and code cleanups.

Over the past two releases, there have been many cleanups to the Rcpp code. For the user this results in some parts of the code running a bit faster, like wb_load() and wb_to_df(). On the developer side, we can now silently build the package with -Wconversion -Wno-sign-conversion, but we went even further and it is now possible to create a build with -Wall -Wpedantic -Wshadow -Wunused -Wconversion -Wsign-compare. Needed? No. Lots of static_cast<>()s? Yes.

A feature requested and provided by @trekonom is the new direction argument which allows grouping of sparklines. It's now also possible to use the current_sheet() waiver with sparkline(). We now load (and save) a few more files without hickups. And it is possible to build the package again with R 3.6 (on Windows just make sure the compiler uses C++11).

There are still bugs/issues/things that have avoided detection for a long time. One of them, discovered by @elipousson, was that the sep argument for combining list columns wasn't implemented at all. Support for partial labels didn't work as intended, and reading non-consecutive dims didn't work as expected. All these issues are now fixed.

A lot of time was spent on various bug fixes, cleanups, and minor improvements here and there. A number of the fixes and features were developed based on user requests and needs. If you find a bug, please let us know!

The 1.12 release is the 24th openxlsx2 release available on CRAN. Even though the package is now semi-stable, it is always a good idea to make regular backups and check the output files. A look at the issue tracker and the NEWs is highly recommended.

What's Changed

New Contributors

Full Changelog: v1.11...v1.12

v1.11

14 Nov 22:20
82a71d4
Compare
Choose a tag to compare

Release 1.11 brings bug fixes and internal cleanups.

This release fixes a bug identified earlier this week, where adding a summary row to a data table could result in data loss. A miscalculation in table length caused the last row of the table to be overwritten instead of correctly appending the summary row below. This issue arose as part of an effort to implement a fully customizable totals row, similar to those in spreadsheet software.
Hopefully, the lack of reports suggests the feature was not widely used. However, the bug may have gone unnoticed by some users, as the table’s appearance remained otherwise normal, with only the last column missing.

Additional cleanups include improvements to the Rcpp code and enhanced documentation for number formats.

A lot of time was spent on various bug fixes, cleanups, and minor improvements here and there. A number of the fixes and features were developed based on user requests and needs. If you find a bug, please let us know!

The 1.11 release is the 23rd openxlsx2 release available on CRAN. Even though the package is now semi-stable, it is always a good idea to make regular backups and check the output files. A look at the issue tracker and the NEWs is highly recommended.

What's Changed

Full Changelog: v1.10...v1.11

v1.10

17 Oct 19:00
Compare
Choose a tag to compare

Release 1.10 brings the usual bug fixes and internal cleanups as well as a few selected new features.

A lot of work was spent in hyperlink handling. The entire internal structure for shared hyperlinks was rewritten and it is possible to add and remove shared hyperlinks using wb_add_hyperlink()/wb_remove_hyperlink() and wb_to_df() gained a new argument show_hyperlink to show the hyperlink target instead of the hyperlink text.

When reading types with wb_to_df() it is now possible to define the type as R data class, instead of the somewhat cryptic openxlsx2 data types. And tables saw a couple of cleanups, ironing out corner cases. Non distinct column names are handled as well as previously non unique table ids. When saving with na.strings = NULL, cells with missing data are no longer written into the worksheet. This can have significant impact on the file size, you can think of the output as a sparse matrix.

A lot of time was spent on various bug fixes, cleanups, and minor improvements here and there. A number of the fixes and features were developed based on user requests and needs. If you find a bug, please let us know!

The 1.10 release is the 22nd openxlsx2 release available on CRAN. Even though the package is now semi-stable, it is always a good idea to make regular backups and check the output files. A look at the issue tracker and the NEWs is highly recommended.

What's Changed

Full Changelog: v1.9...v1.10

v1.9

08 Sep 08:04
e3257c3
Compare
Choose a tag to compare

Release 1.9 brings the usual bug fixes and internal cleanups as well as a few selected new features, and our documentation is now available in dark mode.

A lot of work has been invested in the integration of shared formulas. It is now possible to create shared formulas, similar to how you can drag cells horizontally or vertically in spreadsheet software. Gone are the days of having to be creative to create formulas just to sum a few columns. To use this function, select a dimension where you want to place the formulas, add a formula and select shared = TRUE. We can now also show shared formulas with show_formula = TRUE.

The wb_dims() function has been extensively rewritten as part of the maintenance work to simplify the code and eliminate corner case issues. User requests included improvements to creating spreadsheet headers (#1085), reading formulas as formula with wb_to_df() (#1072), as well as a fix in wb_to_df()'s skip_hidden_row, which previously only worked with wbWorkbooks and not with paths (#1120), and we fixed a bug with unknown fonts (#1079). Finally, we have fixed an issue with CRANs oldrel Mac builds so that CRAN binaries are available again for all R variants.

A lot of time was spent on various bug fixes, cleanups, and minor improvements here and there. A number of the fixes and features were developed based on user requests and needs. If you find a bug, please let us know!

The 1.9 release is the 21st openxlsx2 release available on CRAN. Even though the package is now semi-stable, it is always a good idea to make regular backups and check the output files. A look at the issue tracker and the NEWs is highly recommended.

What's Changed

Full Changelog: v1.8...v1.9

v1.8

07 Jul 14:39
fa80047
Compare
Choose a tag to compare

Release 1.8 brings the usual bug fixes and internal cleanups as well as a few selected new features.

Most of the work went into our xlsb parser. This has been significantly improved, files that previously could not be imported or were not imported correctly now work. We provide support for "rich" text, hopefully parse array functions much better and even provide support for data validation. There are still many things untouched (like pivot tables and conditional formatting), but loading files should work better than ever. Our previous statement remains, we only offer this as an option for our users, and the recommendation remains, if you want to make sure the file has been imported correctly, use spreadsheet software to convert the file.

We have started to deprecate some features that were used in openxlsx and were useful in early stages of openxlsx2, but are now long since replaced by our own functions or are now internalized and should not be used by users directly. Users should see a warning and a note on what to do. If in doubt, please open a discussion. Everybodys darling wb_dims() can now handle multiple column selections and we've fixed a nasty bug that slowed down writing files with non-consecutive numeric formats (like dates in columns A and C).

A lot of time was spent on various bug fixes, cleanups, and minor improvements here and there. A number of the fixes and features were developed based on user requests and needs. If you find a bug, please let us know!

The 1.8 release is the 20th openxlsx2 release available on CRAN. Even though the package is now semi-stable, it is always a good idea to make regular backups and check the output files. A look at the issue tracker and the NEWs is highly recommended.

What's Changed

Full Changelog: v1.7...v1.8

v1.7

02 Jun 17:17
fb5b855
Compare
Choose a tag to compare

Release 1.7 brings the usual bug fixes and internal cleanups as well as a few selected new features.

The support for MIP that was added in 1.6 has been further improved. Previously we added a check for internal folders not being handled by openxlsx2 which was triggered on the [trash] folder, this has been reported and fixed. This folder was added by third party software, similar to a binary blob added when synchronizing files with a third party cloud software. A long time hidden bug was reported and fixed, when columns with special formats surrounded columns in a different format, the styling was applied to those columns as well. Previously, if there were two date columns to the left and right of another column, the column in the middle was also formatted as a date.

There has been support for slicers for some time. This has been extended and now we can create timelines for pivot tables. Our wb_add_timeline() was created to work similarly to wb_add_slicer() on pivot tables created with wb_add_pivot_table(). It is possible to select a specific period, obviously the dim placement and different styles.

We have started to extend our work on the undo changes function. Now we provide wb_remove_conditional_formatting(), wb_remove_slicer() and wb_remove_timeline(). This work has not yet been completed.

A lot of time was spent on various bug fixes, cleanups, and minor improvements here and there. A number of the fixes and features were developed based on user requests and needs. If you find a bug, please let us know!

The 1.7 release is the 19th openxlsx2 release available on CRAN. Even though the package is now semi-stable, it is always a good idea to make regular backups and check the output files. A look at the issue tracker and the NEWs is highly recommended.

What's Changed

Full Changelog: v1.6...v1.7

v1.6

01 May 10:11
70058cf
Compare
Choose a tag to compare

Release 1.6 brings the usual bug fixes and internal cleanups as well as a few selected new features. Big thanks again to @olivroy for his ongoing help with documentation fixes and internal cleanups!

We fulfilled a user request by adding MIP support, which is a kind of confidentiality stamp added to the xlsx file. This only works in certain business environments as we couldn't test it ourselves, thanks for the request and the testing! In addition, it is now possible to add custom properties via wb_set_properties().

Initial support for richData folders has been added, so it is possible to read spreadsheets with images embedded in cells. (This has not been fully tested, please let us know if you encounter problems). After a long time, another nice addition is the added support for non-contiguous dimensions, finally something like "A1:B2,B4:C5" can be used with e.g. wb_add_fill() and it is even possible to write data into different cells!

Among the bug fixes and internal cleanups: It is now possible to write data frames with zero rows, we've fixed the remaining few cases of partial matching, and improved some error and warning messages to let our users know what exactly is going on.

A lot of time was spent on various bug fixes, cleanups, and minor improvements here and there. A number of the fixes and features were developed based on user requests and needs. If you find a bug, please let us know!

The 1.6 release is the 18th openxlsx2 release available on CRAN. Even though the package is now semi-stable, it is always a good idea to make regular backups and check the output files. A look at the issue tracker and the NEWs is highly recommended.

What's Changed

Full Changelog: v1.5...v1.6

v1.5

26 Mar 18:04
925bec2
Compare
Choose a tag to compare

Release 1.5 brings the usual bug fixes and a few improvements to vector writing. The release was a bit bumpier than previous releases as the package is now suggested by three CRAN packages and even an import for one. Thanks for your trust in us!

Our beloved dims handler wb_dims() received another round of improvements and is now able to handle the positioning of dims using a new from_dims argument, you guessed it. Additionally, it is possible to use other positioning arguments (below, above, left, right) that can be given integer offsets (wb_dims(from_dims = "A1", right = 2), places the new dimension two columns right to the previous dimension). Quite exited to see if this works as well as I hope!

A feature request has been solved with the new openxlsx2.na.strings option, which can be used to change the default na.strings, and the page setup feature has been placed on a new foundation. What caused the bumpy release was a revdep failure discovered at the last minute by CRAN: this was caused by us changing how vectors can be positioned. Previously, it was necessary to transpose vectors before writing them to the worksheet with t(vector). Since version 1.5 it is possible to position the vector with dims only. The initial implementation caused a test in one of the CRAN packages to fail, and of course this had to be fixed first.

A lot of time went into various bug fixes, cleanups, and minor improvements here and there. A number of the fixes and features were developed based on user requests and needs. If you find a bug, please let us know!

The release 1.5 is the 17th openxlsx2 release which is available under CRAN. Even though the package is now now semi-stable, it is always a good idea to make regular backups and check output files regularly. A look at the issue tracker and the NEWs is recommended in any case.

What's Changed

Full Changelog: v1.4...v1.5

v1.4

15 Feb 23:28
ee3590b
Compare
Choose a tag to compare

Release 1.4 brings the usual bug fixes and some improvements to pivot tables and new style options.

An important change that users will notice immediately is the switch to a new Office theme and from Calibri as the default font to Aptos Narrow. The included themes have been slightly extended and we have optimized wb_set_base_font() and added wb_set_base_colors()/wb_get_base_colors(). Yes, now it is possible to change the font and colors of a worksheet theme directly from openxlsx2.

This release also brings another round of improvements for pivot tables. It is now possible to calculate formulas (a previous user request), and sorting elements should finally work as intended. In the often neglected write_xlsx() function, it is now possible to freeze columns and rows, something that did not work before and was discovered when writing tests and examining coverage reports.

A lot of time went into various bug fixes, cleanups, and minor improvements here and there. A number of the fixes and features were developed based on user requests and needs. If you find a bug, please let us know!

The release 1.4 is the 16th openxlsx2 release which is available under CRAN. Even though the package is now now semi-stable, it is always a good idea to make regular backups and check output files regularly. A look at the issue tracker and the NEWs is recommended in any case.

What's Changed

Full Changelog: v1.3...v1.4

v1.3

12 Jan 10:29
6ed65bf
Compare
Choose a tag to compare

Release 1.3 brings the usual bug fixes and some improvements to documentation.

Even though I don't like working on performance issues, this version brings long overdue improvements to wb_add_data(). In particular, writing larger matrix objects should now be much faster. In addition, wb_load() has received minor improvements and a much longer documentation text. The documentation for wb_add_pivot_table() has also been improved. Further documentation can be found in the WIP book.

In wb_to_df() an error has been fixed where the column name was omitted in combination with col_names = FALSE for logical columns. Due to issues raised by @Layalchristine24, a new function wb_set_cell_style_across() has been added. This is required in conjunction with some options in wb_protect_worksheet() such as deleteColumns/deleteRows. The currency style has also been reset to the originally intended behavior. It is now also possible to change the color of comments or add a background image for them.

A lot of time went into various bug fixes, cleanups, and minor improvements here and there. A number of the fixes and features were developed based on user requests and needs. If you find a bug, please let us know!

The release 1.3 is the 15th openxlsx2 release which is available under CRAN. Even though the package is now now semi-stable, it is always a good idea to make regular backups and check output files regularly. A look at the issue tracker and the NEWs is recommended in any case.

What's Changed

Full Changelog: v1.2...v1.3