Format an IddObject into a string of an empty object of current class. It is formatted exactly the same as in IDF Editor.

# S3 method for IddObject
format(x, comment = NULL, leading = 4L,
  sep_at = 29L, all = FALSE, ...)

Arguments

x

An IddObject object.

comment

A character vector to be used as comments of returned string format object. If NULL, no comments are inserted. Default: NULL.

leading

Leading spaces added to each field. Default: 4.

sep_at

The character width to separate value string and field string. Default: 29 which is the same as IDF Editor.

all

If TRUE, all fields in current class are returned, otherwise only minimum fields are returned.

...

Further arguments passed to or from other methods.

Value

A single length character vector.

Examples

if (FALSE) { cat(format(use_idd(8.8, download = "auto")$Materal, leading = 0)) }