Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

as(<numLike>, "dgeMatrix") is deprecated #65

Open
schuemie opened this issue Dec 6, 2022 · 0 comments
Open

as(<numLike>, "dgeMatrix") is deprecated #65

schuemie opened this issue Dec 6, 2022 · 0 comments

Comments

@schuemie
Copy link
Member

schuemie commented Dec 6, 2022

Under specific circumstances, the following warning is thrown:

as(<numLike>, "dgeMatrix") is deprecated since Matrix 1.5-0; do as(as(as(., "dMatrix"), "generalMatrix"), "unpackedMatrix") instead

I suspect this originates here. The following code reproduces this behavior, but only once per R session:

library(survival)
poissonData <- dplyr::tibble(
  y = 0,
  caseId = 1,
  x = TRUE,
  logDays = 3.4
)

cyclopsData <- Cyclops::createCyclopsData(
  y ~ x + strata(caseId) + offset(logDays),
  modelType = "cpr",
  data = poissonData
)

Could the code be modified as suggested in the warning?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant