Deprecated functions in package openxlsx2Source:
These functions are provided for compatibility with older versions of
and may be defunct as soon as the next release. This guide helps you update your
code to the latest standards.
As of openxlsx2 v1.0, API change should be minimal.
These functions are used internally by openxlsx2. It is no longer advertised to use them in scripts. They originate from openxlsx, but do not fit openxlsx2's API.
You should be able to modify
You should be able to change those with minimal changes
First of all, you can set an option that will add warnings when using deprecated functions.
options("openxlsx2.soon_deprecated" = TRUE)
For consistency, arguments were renamed to snake_case for the 0.8 release.
It is now recommended to use
dims (the cell range) in favor of
wb_dims() as it provides many options on how to provide cell range
These functions were renamed for consistency.
wb_get_named_regions()will no longer allow providing a file.
## Before wb_get_named_regions(file) ## Now <- wb_load(file) wb wb_get_named_regions(wb) # also possible wb_load(file)$get_named_regions()`