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

Quick example in readme and CRAN vignette needs an update #58

Closed
nanxstats opened this issue Jul 15, 2024 · 0 comments · Fixed by #59
Closed

Quick example in readme and CRAN vignette needs an update #58

nanxstats opened this issue Jul 15, 2024 · 0 comments · Fixed by #59
Assignees

Comments

@nanxstats
Copy link
Collaborator

nanxstats commented Jul 15, 2024

The quick example in README.md probably needs an update:

library("forestly")

meta_forestly(
  forestly_adsl,
  forestly_adae
) |>
  prepare_ae_forestly(parameter = "any;rel;ser") |>
  format_ae_forestly() |>
  ae_forestly()
Error in vapply(parameters, function(x) metalite::collect_adam_mapping(outdata$meta,  : 
  values must be length 1,
 but FUN(X[[3]]) result is length 0
In addition: Warning messages:
1: In metalite.ae::prepare_ae_specific(meta, population = population,  :
  In observation level data, force group variable 'TRTA' be a factor
2: In metalite.ae::prepare_ae_specific(meta, population = population,  :
  In observation level data, force group variable 'TRTA' be a factor
3: In metalite.ae::prepare_ae_specific(meta, population = population,  :
  In observation level data, force group variable 'TRTA' be a factor

Also the vignette:

library(forestly)

forestly_adsl$TRTA <- factor(forestly_adsl$TRT01A, levels = c("Xanomeline Low Dose", "Placebo"), labels = c("Low Dose", "Placebo"))

forestly_adae$TRTA <- factor(forestly_adae$TRTA, levels = c("Xanomeline Low Dose", "Placebo"), labels = c("Low Dose", "Placebo"))

meta_forestly(
  dataset_adsl = forestly_adsl,
  dataset_adae = forestly_adae,
  population_subset = SAFFL == "Y",
  observation_subset = SAFFL == "Y"
) |>
  prepare_ae_forestly(parameter = "any;rel;ser") |>
  format_ae_forestly() |>
  ae_forestly()
Error in vapply(parameters, function(x) metalite::collect_adam_mapping(outdata$meta,  : 
  values must be length 1,
 but FUN(X[[3]]) result is length 0
@nanxstats nanxstats changed the title Quick example in readme needs an update Quick example in readme and CRAN vignette needs an update Jul 15, 2024
@wangben718 wangben718 self-assigned this Jul 17, 2024
@wangben718 wangben718 linked a pull request Jul 17, 2024 that will close this issue
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