Skip to content

Backward compatibility #27

@tjibbed

Description

@tjibbed

As part of a dashboard development I noticed the following:

RDS files created using older versions of the package don't allow for the node and ring colouring in the circular network plot, even when using the newer version of the package. This because the plotting function is stored in the HospiNet object, and the older plotting function doesn't recognise the extra arguments.

To solve this, I propose creating a version of the $new() function that just takes the entire object, copies the network information into the current HospiNet object, that does contain the current plotting function.

As an additions, I'd like to propose adding an attribute to the object that contains the version number, so any application using the package can check if the input object was created using the most recent version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions