| setAutoIdFormat | R Documentation |
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.
setAutoIdFormat(format)
format |
A single character string: the auto-ID |
The previous format, returned invisibly.
getAutoIdFormat, addUIds
old <- setAutoIdFormat("AUTO%05d")
getAutoIdFormat()
setAutoIdFormat(old) # restore
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.