RLink`
RLink`

RDataTypeUnregister

RDataTypeUnregister[type]

unregisters a data type with the name type from the RLink type system.

Details

  • The type name type should normally be a string.
  • RDataTypeUnregister performs the reverse operation with respect to RDataTypeRegister.
  • If the data type with the name type has not been registered or has been already unregistered, RDataTypeUnregister does nothing.

Examples

Basic Examples  (2)

Consider R data frames, which represent one of the extended data types added to core RLink data types through the type extension mechanism. This creates a simple data frame:

Now unregister the data frame type:

Repeating the previous evaluation will now produce a different Wolfram Language expression, which is a generic RLink representation of an R data frame being interpreted as an R list with attributes:

The previous action, of course, impaired the data frame functionality. To recover previously registered definitions for data frames, you can call RDataTypeDefinitionsReload:

This recovers the previous result: