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

[Bug]: %make_label% not returned in the code for longitudinal teal.gallery app for Correlation Plot #337

Closed
m7pr opened this issue Sep 3, 2024 · 1 comment

Comments

@m7pr
Copy link
Contributor

m7pr commented Sep 3, 2024

You will get below, but no code for %make_label%.
Either edit code in https://github.com/insightsengineering/teal.gallery/blob/main/longitudinal/app.R#L73C1-L76C4 and reuse @linksto tags, or extend teal.data:::get_code_dependency to handle operators.

# Add any code to install/load your NEST environment here

library(shiny)
library(dplyr)
library(goshawk)
library(teal.code)
library(teal.data)
library(teal.slice)
library(teal)
library(teal.transform)
library(teal.goshawk)
library(formatters)
library(magrittr)
library(rtables)
library(tern)
library(teal.modules.clinical)
library(ggplot2)
library(ggmosaic)
library(teal.modules.general)
library(DescTools)
library(random.cdisc.data)
library(stringr)
library(sparkline)

library(DescTools)
library(magrittr)
library(dplyr)
library(random.cdisc.data)
library(stringr)
library(sparkline)
ADSL <- radsl(seed = 1)
ADLB <- radlb(ADSL, seed = 1)
exclude_l2 <- c("")
exclude_chg <- c("")
arm_mapping <- list(`A: Drug X` = "Drug X 100mg", `C: Combination` = "Combination 100mg", `B: Placebo` = "Placebo")
ADSL <- ADSL %>% filter(ITTFL == "Y") %>% mutate(TRTORD = case_when(TRT01P == "A: Drug X" ~ 1, TRT01P == "C: Combination" ~ 2, TRT01P == "B: Placebo" ~ 3, TRUE ~ as.numeric(NA)), TRTORD = TRTORD %make_label% "Treatment Order", TRT01P = as.character(arm_mapping[match(TRT01P, names(arm_mapping))]), TRT01P = factor(ARM) %>% reorder(TRTORD), TRT01P = TRT01P %make_label% "Planned Treatment for Period 01")
@gogonzo gogonzo transferred this issue from insightsengineering/teal.data Oct 10, 2024
@gogonzo gogonzo transferred this issue from insightsengineering/teal.gallery Oct 10, 2024
@vedhav
Copy link
Contributor

vedhav commented Oct 10, 2024

The %make_label% is replaced with .make_label now and the dev branch will be merged to main when we release the packages and this issue will no longer appear. So closing this issue.
Screenshot 2024-10-10 at 3 50 42 PM

@vedhav vedhav closed this as completed Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants