basictabler 1.0.2

Improvements

Tables can now be exported to a wider variety of file formats using the flextabler package. Supported formats including Microsoft Word, Microsoft PowerPoint and PDF. See the Outputs vignette for more details.

It is now easier to format the borders for specific cells. See the “Formatting cell borders for specific cells” section of the Styling vignette for more details.

Bug Fixes

Resolved error “Error in columnValues[r - rowOffset] <- v : replacement has length zero” that sometimes occurred when executing bt$asDataFrame().

basictabler 1.0.1

This release includes one small bug fix: Tables exported to an Excel file would result in blank cells in the Excel worksheet for table cells which had a formatted value but no raw value (i.e. a raw value of NULL). This can occur when exporting pivot tables from the pivottabler package for the row/column headings of totals and for row/column headings when multiple calculations are specified in the pivot table.

The bt$writeToExcelWorksheet() function has new parameter useFormattedValueIfRawValueIsNull which has a default value of TRUE to automatically use the formatted value if the raw value is NULL.

If required, the previous behaviour can be restored by specifying useFormattedValueIfRawValueIsNull=FALSE.

basictabler 1.0.0

This release includes three breaking changes and numerous small enhancements across various parts of the package.

Breaking Changes

Argument order changes

The order of the arguments for functions qtbl(), qhtbl() and tbl$addData() has changed. Users relying on the order of arguments may need to update their code. All existing arguments have retained the same name - so users calling these functions using the argument names will be unaffected.

Change of default behaviour in tbl$findCells()

Previously the rowNumbers and columnNumbers arguments of tbl$findCells() were applied in combination e.g. specifying rowNumbers=2:3 and columnNumbers=5:6 previously matched only those cells satisfying both the rowNumbers criteria AND the columnNumbers criteria, which is cells (2, 5), (2, 6), (3, 5) and (3, 6) - and not for example (2, 4).

From v1.0.0 of the package, the rowNumbers and columnNumbers arguments are by default applied independently, e.g. specifying rowNumbers=2:3 and columnNumbers=5:6 will match all cells in rows 2 and 3 and all cells in columns 5 and 6, i.e. cells must match either the rowNumbers criteria OR the columnNumbers criteria.

The previous behaviour can be restored using the tbl$findCells() argument rowColumnMatchMode="combinations".

This change makes the behaviour of tbl$getCells() and tbl$findCells() consistent. It also makes the behaviour consistent with the same functions in the pivottabler package.

stringsAsFactors in R 4.0.x and 4.1.x

From R 4.1.0, the default value of the stringsAsFactors argument in tbl$asDataFrame() changes to FALSE due to the deprecation of default.stringsAsFactors(). When the package is used on versions of R < 4.1.0, the package behaviour is unchanged. When the package used on R 4.0.x versions, a warning message is displayed about the change in future behaviour.

Documentation Changes

Improvements

basictabler 0.3.1

This is a maintenance release that fixes a couple of compatibility issues around the new default of stringsAsFactors=FALSE in data.frame() in the upcoming R 4.0.0 release.

basictabler 0.3.0

Overview

This release includes two small potentially breaking changes to the HTML generated by the package and one bug fix.

Breaking Changes

Changes to table header cells in HTML

When generating HTML, previous versions of the package rendered all cells using the html td element. More correctly, header cells should be rendered using the th element.

This behaviour also causes compatibility issues with the pivottabler package, which already renders header cells using th - i.e. pivot tables converted to basic tables were rendered differently by basictabler compared to pivottabler.

Starting from this version of basictabler, header cells are rendered as th elements. In most cases, this will make no difference to the visual appearance of the table, however it may cause issues for users who require the previous behaviour. The previous behaviour is still available by specifying compatibility=list(headerCellsAsTD=TRUE) as an argument when creating the table, either in BasicTable$new() or one of the quick table functions such as qtbl().

Originally reported by @rickwargo (thanks!).

Changes to rowspan and colspan attributes in HTML

When generating HTML, v0.2.0 would always generate rowspan and colspan attributes for merged table cells, even if the number of rows or columns being spanned was only one. Starting with v0.3.0, rowspan and colspan attributes are only generated where the number of rows or columns being spanned is greater than one. This should make no difference to the visual appearance of the table, however it may cause issues for users who require the previous behaviour. The previous behaviour is still available by specifying compatibility=list(explicitHeaderSpansOfOne=TRUE) as an argument when creating the table, either in BasicTable$new() or one of the quick table functions such as qtbl().

Bug Fixes

Calling tbl$setStyling() on the same cell multiple times now succeeds (previously failed with error). Originally reported by @palatinuse (thanks!).

basictabler 0.2.0

Overview

This release includes:

Breaking Changes

The default value of the specifyCellsAsList argument in the tbl$getCells() function has been changed to TRUE (previously FALSE) since this argument usage is more intuitive and is consistent with the pt$getCells() function in the pivottabler package.

Improvements

basictabler 0.1.1

Bug Fixes

Tiny change to correct the index entry of the second vignette.

basictabler 0.1.0

Initial version.

Earlier versions

No versions prior to 0.1.0 were released.

mirror server hosted at Truenetwork, Russian Federation.