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

get_code of DatasetConnector object does not include codes that generated Dataset objects #28

Closed
cicdguy opened this issue Aug 5, 2021 · 1 comment
Assignees

Comments

@cicdguy
Copy link
Contributor

cicdguy commented Aug 5, 2021

to reproduce:

# devtools::load_all()
library(random.cdisc.data)
library(MultiAssayExperiment)
ADSL <- radsl(cached = TRUE)
ADSL_dataset <- dataset(dataname = "ADSL", x = ADSL)

pull_fun2 <- callable_function(data.frame)
pull_fun2$set_args(args = list(a = c(1,2,3)))
dataset_connector("test", pull_fun2) -> t

ADSL3 <- list(DTHDT=20:100)
mutate_dataset(t, code = "test$new_var = ADSL$DTHDT[41];", vars = list(ADSL = ADSL_dataset))
mutate_dataset(t, code = "test$new_var = ADSL3$DTHDT[41];", vars = list(ADSL3 = ADSL3))

load_dataset(t)
styler::style_text(t$get_code())

image

The code that generated ADSL3 is captured and printed. But the code that generated ADSL is not. ADSL is a Dataset object. What is the reason in not printing the code that generates the Dataset object?

Provenance:

Creator: junlue
@gogonzo
Copy link
Contributor

gogonzo commented Dec 4, 2023

Not relevant anymore. Full implementation of teal_data already on main

@gogonzo gogonzo closed this as completed Dec 4, 2023
@gogonzo gogonzo self-assigned this Jan 17, 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