Skip to content

Detect packages needed by S4 classes #74

@HenrikBengtsson

Description

@HenrikBengtsson
> library(bigmemory)
> X <- as.big.matrix(matrix(1:10, nrow = 2L))
> class(X)
[1] "big.matrix"
attr(,"package")
[1] "bigmemory"

In other words, if X is a global, we should append:

packages <- c(packages, attr(class(X), "package"))

Metadata

Metadata

Assignees

No one assigned

    Labels

    S4Related to the S4 class system in R

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions