laminlabs / laminr

Lamin's R SDK.
http://laminr.lamin.ai/
Apache License 2.0
8 stars 1 forks source link

Add printing to remaining classes #31

Closed lazappi closed 1 month ago

lazappi commented 1 month ago

Add print() and to_string() methods to the remaining R6 classes. Output tries to replicate the Python formatting except for some cases where the corresponding Python object doesn't have a print output.

lazappi commented 1 month ago

Examples

Artifact

#### Python ![image](https://github.com/user-attachments/assets/003ccfb5-0df2-40e7-a153-27117cbcb0ac) #### R ![image](https://github.com/user-attachments/assets/56847340-b35f-4b64-8234-1032534e8cf3)

Field

#### Python ![image](https://github.com/user-attachments/assets/b5d6aedb-378f-40da-86aa-94a99f61934b) #### R ![image](https://github.com/user-attachments/assets/f635eafd-8949-468b-af24-a4b61cb91ce6)

Instance

#### R ![image](https://github.com/user-attachments/assets/5803e041-2b9d-43d6-b10f-662d7e44d9e5) #### R (`to_string()`) ![image](https://github.com/user-attachments/assets/3ae980bf-6389-4dc0-96a2-1a64a5c27a85)

InstanceAPI

#### R ![image](https://github.com/user-attachments/assets/8e43ca69-f26a-4259-887d-2a9f596a6393)

InstanceSettings

#### R ![image](https://github.com/user-attachments/assets/be07debf-80db-46b0-b659-138f54da410c)

Module

#### R ![image](https://github.com/user-attachments/assets/8d2c01db-8789-43bd-aad9-664d9d4f61b9) #### R (`to_string()`) ![image](https://github.com/user-attachments/assets/ca9e0f24-45df-4c64-b207-d16041ced1e6)

Record

#### Python ![image](https://github.com/user-attachments/assets/e7167cfc-bcf3-4ee5-94d6-09bb57451622) #### R ![image](https://github.com/user-attachments/assets/c9a7d677-e55a-4079-bdb2-bbaedcdd2936)

Registry

#### Python ![image](https://github.com/user-attachments/assets/ee5d13dc-810f-4af6-8650-51e61515ec78) #### R ![image](https://github.com/user-attachments/assets/f4d4e38e-5e20-40b0-ad62-fee0ce3d42a7) #### R (`to_string()`) ![image](https://github.com/user-attachments/assets/f54d64bd-29d5-48c7-b55c-72a5973d1f66)