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


pharmaR/riskmetric documentation built on March 10, 2024, 8:20 a.m.