Skip to content

Moving towards fast evaluation (unwindProtect) by default #1227

Closed
@Enchufa2

Description

@Enchufa2

Unwind protection for fast evaluation of R code at C/C++ level was introduced in R 3.5, and it has been supported as an opt-in since Rcpp 0.12.15 via a define (RCPP_USE_UNWIND_PROTECT) and a plugin (unwindProtect). Now #1225 brings this as a default for the next release:

  • RCPP_USE_UNWIND_PROTECT has no effect anymore.
  • Instead, it can be opted-out by defining RCPP_NO_UNWIND_PROTECT.
  • The associated plugin is deprecated. To avoid errors, it currently shows a warning and has no effect. It could be removed in a future release.

To plan ahead for this eventual removal (and avoid warnings as much as possible meanwhile), we'll try to identify all the packages using the plugin and propose a patch to switch to using RCPP_USE_UNWIND_PROTECT, which is harmless when the feature is enabled by default. This issue will keep track of the process.

  • PPRL (0.3.6) [no repo] [patch emailed 2022-07-27]
Done

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions