You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: NEWS.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
# S7 (development version)
2
2
3
3
* Errors thrown by S7 now report the function where they occurred, making it easier to track down the source of a problem (#646).
4
+
*`class_POSIXct` uses the `tzone` attribute (not `tz`), and allows it to be absent (#401).
4
5
* Base type wrappers like `class_integer` now define their constructor and validator in the S7 namespace. (#553).
5
6
* Method dispatch on `class_missing` now correctly handles missing arguments forwarded through a wrapper functions (#595).
6
7
*`convert()` no longer automatically converts between sibling classes (classes that merely share a common ancestor); the default downcast now applies only when `to` is genuinely a descendant of `from`'s class (#509).
@@ -15,6 +16,7 @@
15
16
*`new_object()` now gives an informative error when `.parent` is a class specification rather than an instance of the parent class (#409).
16
17
*`new_object()` no longer materialises ALTREP parent values (e.g. `seq_len()`), so constructing an S7 object that wraps a large compact integer sequence is now O(1) in memory instead of O(n) (@kschaubroeck, #607).
17
18
*`new_object()` no longer re-runs property validators for properties inherited unchanged from an already-validated parent class, so constructing an instance of a deeply nested class hierarchy validates each property exactly once (#539).
19
+
*`new_property()` now runs the property class's own validator when checking a value, not just the structural class check, so a property restricted to an S3 class (e.g. `class_factor`) now enforces constraints that aren't visible in `class()` (#401).
18
20
*`new_property()` now accepts a `setter` that takes `self`, `name`, and `value` making it easy to reuse the same definition for multiple properties (#552).
19
21
*`new_S3_class()` objects now work with `inherits()` (and other functions that use `nameOfClass()`) in R 4.3 and later (@lawremi, #521).
20
22
*`print(<S7_class>)` now shows property defaults inline (`= "value"`) and annotates read-only properties (`[read-only]`) (#439).
0 commit comments