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

Loading required namespace: testthat always shows up in get_censoring_date_match() #46

Closed
2 of 4 tasks
davidsantiagoquevedo opened this issue Mar 26, 2024 · 0 comments · Fixed by #47
Closed
2 of 4 tasks
Assignees

Comments

@davidsantiagoquevedo
Copy link
Member

Please place an "x" in all the boxes that apply

  • I have the most recent version of linelist and R
  • I have found a bug
  • I have a reproducible example
  • I want to request a new feature

Loading required namespace: testthat always shows up when running get_censoring_date_match()

library(vaccineff)
data("cohortdata")

# assign vaccination status
cohortdata$vaccine_status <- set_status(
  data = cohortdata,
  col_names = c("vaccine_date_1", "vaccine_date_2"),
  status = c("v", "u")
)

# match cohort
matched_cohort <- match_cohort(data = cohortdata,
  status_vacc_col = "vaccine_status",
  nearest = c(age = 1),
  exact = "sex"
)

# add column with censoring date for match 
# this step returns the message `Loading required namespace: testthat`
matched_cohort$censoring_date_match <-  get_censoring_date_match(
  data = matched_cohort,
  outcome_date_col = "death_date",
  censoring_date_col = "death_other_causes"
)

Bisaloo added a commit that referenced this issue Apr 16, 2024
Since expect_names() is intended to be used in tests only and will trigger loading of testthat (issue #46)
davidsantiagoquevedo pushed a commit that referenced this issue May 1, 2024
Since expect_names() is intended to be used in tests only and will trigger loading of testthat (issue #46)
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

Successfully merging a pull request may close this issue.

2 participants