nanoarrow_extension_spec {nanoarrow} | R Documentation |
Register Arrow extension types
Description
Register Arrow extension types
Usage
nanoarrow_extension_spec(data = list(), subclass = character())
register_nanoarrow_extension(extension_name, extension_spec)
unregister_nanoarrow_extension(extension_name)
resolve_nanoarrow_extension(extension_name)
Arguments
data |
Optional data to include in the extension type specification |
subclass |
A subclass for the extension type specification. Extension methods will dispatch on this object. |
extension_name |
An Arrow extension type name (e.g., arrow.r.vctrs) |
extension_spec |
An extension specification inheriting from 'nanoarrow_extension_spec'. |
Value
-
nanoarrow_extension_spec()
returns an object of class 'nanoarrow_extension_spec'. -
register_nanoarrow_extension()
returnsextension_spec
, invisibly. -
unregister_nanoarrow_extension()
returnsextension_name
, invisibly. -
resolve_nanoarrow_extension()
returns an object of class 'nanoarrow_extension_spec' or NULL if the extension type was not registered.
Examples
nanoarrow_extension_spec("mynamespace.mytype", subclass = "mypackage_mytype_spec")
[Package nanoarrow version 0.5.0.1 Index]