iv_format() is an S3 generic intended as a developer tool for making a
custom class print nicely when stored in an iv. The default method simply
calls format(), and in many cases this is enough for most classes.
However, if your class automatically adds justification or padding when
formatting a single vector, you might need to implement an iv_format()
method to avoid that padding, since it often looks strange when nested
in an interval vector.
Arguments
- x
[vector]A vector to format. This will be called on the
iv_start()andiv_end()vectors of an iv.
Value
A character vector, likely generated through a call to format().