Skip to content

load_all is Tripped Up By methods' setOldClass #310

@DarioS

Description

@DarioS

In my Bioconductor package, I have setOldClass("Surv") to make the class from survival package S4-friendly.

$ git clone https://github.com/SydneyBioX/ClassifyR.git # Download the package to disk.
$ cd ClassifyR
$ R
> devtools::load_all() # Works fine first time, warning the second time, error the third time.
Error in `load_all()`:
! Failed to load R/classes.R
Caused by error in `setOldClass()`:
! inconsistent old-style class information forSurv”; the class is defined but does not extendoldClassand is not valid as the data part

In contrast, in RStudio Server, the error happens at the first time of execution, not the third.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions