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

Error when calling cs function #96

Closed
haydenbspence opened this issue May 22, 2024 · 2 comments
Closed

Error when calling cs function #96

haydenbspence opened this issue May 22, 2024 · 2 comments

Comments

@haydenbspence
Copy link

System: Broadsea 3.5

I run the following vignette

library(DatabaseConnector)
library(Capr)

cs0 <- cs(descendants(443238, 201820, 442793),
          descendants(exclude(195771, 201254, 435216, 761051, 4058243, 40484648)),
          name = "Type 2 diabetes mellitus (diabetes mellitus excluding T1DM and secondary)")
ch <- cohort(
  entry = entry(
    conditionOccurrence(cs0),
    observationWindow = continuousObservation(priorDays = 365)
  ),
  exit = exit(
    endStrategy = observationExit()
  )
)

Error:

> cs0 <- cs(descendants(443238, 201820, 442793),
+           descendants(exclude(195771, 201254, 435216, 761051, 4058243, 40484648)),
+           name .... [TRUNCATED] 
Error in cs(descendants(443238, 201820, 442793), descendants(exclude(195771,  : 
  could not find function "cs"
@mdlavallee92
Copy link
Collaborator

what version of Capr are you using? Working in my local on v2.0.8. Could Broadsea be on an old version?

@haydenbspence
Copy link
Author

what version of Capr are you using? Working in my local on v2.0.8. Could Broadsea be on an old version?

Just looked into the image for broadsea-hades, and it's a 2yrs old.

I updated using the HADES wide release and Capr is working fine now.

This seems to be an issue with Broadsea not being aligned with the most recent HADES wide release, not Capr.

Related issue:
OHDSI/Hades#37

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

2 participants