allow_mutation: a wrapper to assert that a pkg_ref has been permitted to do...

View source: R/pkg_ref_class_extract.R

allow_mutationR Documentation

a wrapper to assert that a pkg_ref has been permitted to do an additional mutation, used to handle recursive initialization of cached fields

Description

a wrapper to assert that a pkg_ref has been permitted to do an additional mutation, used to handle recursive initialization of cached fields

Usage

allow_mutation(x, expr, envir = parent.frame())

Arguments

x

a pkg_ref object

expr

an expression to evaluate, and possible do a mutation within

envir

an environment in which the expression is to be evaluated

Value

the result of expr


riskmetric documentation built on Sept. 1, 2023, 1:06 a.m.