Use RTypedData instead of RData