local_edition: Temporarily change the active testthat edition

View source: R/edition.R

local_editionR Documentation

Temporarily change the active testthat edition

Description

local_edition() allows you to temporarily (within a single test or a single test file) change the active edition of testthat. edition_get() allows you to retrieve the currently active edition.

Usage

local_edition(x, .env = parent.frame())

edition_get()

Arguments

x

Edition Should be a single integer.

.env

Environment that controls scope of changes. For expert use only.


r-lib/testthat documentation built on Feb. 18, 2024, 8:59 p.m.