Re: [R-pkg-devel] Extending/adding to an R6 class from another package: qns

2018-10-19 Thread Hong Ooi via R-package-devel
--- Begin Message --- I do use subclassing as you suggest. In my base package I have an az_resource class that represents any generic Azure resource. Eg in the VM package, I extend it to obtain az_vm_resource; in the storage package I extend it to obtain az_storage; and so on. In addition to sim

Re: [R-pkg-devel] Extending/adding to an R6 class from another package: qns

2018-10-19 Thread Hadley Wickham
> AzureRMR: the "base" package, provides a number of R6 classes > AzureVM: a "child" package that extends classes from AzureRMR with extra > functionality related to virtual machines > AzureStor: another child package that extends classes from AzureRMR, this > time for storage accounts > Etc. > >

[R-pkg-devel] Extending/adding to an R6 class from another package: qns

2018-10-19 Thread Hong Ooi via R-package-devel
--- Begin Message --- I'm writing a family of packages for talking to Azure (Microsoft's cloud service) from R. The basic architecture is AzureRMR: the "base" package, provides a number of R6 classes AzureVM: a "child" package that extends classes from AzureRMR with extra functionality related t