Skip to contents

Generic function for an explicit, on-demand preview of an object, as distinct from print(). preview() exists for object types where print() is shared with another package's S3 generic dispatch (e.g. class "html", used both by pharos and htmltools for genuinely different purposes), so that registering an own print.* method would silently overwrite - or be overwritten by - the other package's behaviour.

Usage

preview(x, ...)

# Default S3 method
preview(x, ...)

Arguments

x

object to preview.

...

further arguments passed to methods.

Details

The default method simply calls print(), so preview() is always safe to call even for types with no dedicated method.

See also