The vignette has been extended with a new examples, a new section and some general editing. A few new defines have been added mostly from the Rinternals.h header. We also replaced the
Shield class with a simpler yet updated version class Protect. The name better represent the core functionality of offering a simpler alternative to the
UNPROTECT macro pairing. We also added a short discussion to the vignette of a gotcha one has to be mindful of, and that we fell for ourselves in version 0.0.1. We also added a
typedef so that code using
Shield can still be used.
The NEWS entry follows.
Changes in tidyCpp version 0.0.2 (2020-11-12)
Expanded definitions in
internals.hto support new example.
The vignette has been extended with an example based on package uchardet.
Shieldhas been replaced by an new class
Protect; a compatibility
typdefhas been added.
The examples and vignette have been clarified with respect to proper ownership of protected objects; a new vignette section was added.