setAutoIdFormat: Set the auto-generated unknown-ID format

View source: R/autoIdFormat.R

setAutoIdFormatR Documentation

Set the auto-generated unknown-ID format

Description

Sets the sprintf template used to mint and detect placeholder IDs for unknown parents (see addUIds). The format must have a non-empty literal prefix before its first "%" (used for detection) and must consume a single integer (used for generation), e.g. "U%04d" or "AUTO%05d". The setting is stored in options(nprcgenekeepr.autoIdFormat=) and read by getAutoIdFormat.

Usage

setAutoIdFormat(format)

Arguments

format

A single character string: the auto-ID sprintf format.

Value

The previous format, returned invisibly.

See Also

getAutoIdFormat, addUIds

Examples

old <- setAutoIdFormat("AUTO%05d")
getAutoIdFormat()
setAutoIdFormat(old) # restore

nprcgenekeepr documentation built on July 26, 2026, 5:06 p.m.