-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Extend teal transform vignette #1301
Extend teal transform vignette #1301
Conversation
…669_insertUI@main
…669_insertUI@main
Signed-off-by: Vedha Viyash <[email protected]>
Co-authored-by: Marcin <[email protected]> Signed-off-by: Vedha Viyash <[email protected]>
Co-authored-by: Marcin <[email protected]> Signed-off-by: Vedha Viyash <[email protected]>
@vedhav check my proposition for the wrapper that appends the Maybe you'd like to polish the wrapper a bit? I had issues using mod$ui
function(id) {
ns <- NS(id)
teal.widgets::standard_layout(
output = verbatimTextOutput(ns("text")),
encoding = tags$div(
selectInput(ns("dataname"), "Choose a dataset", choices = NULL),
teal.widgets::verbatim_popup_ui(ns("rcode"), "Show R code")
)
)
}
<bytecode: 0x000001e87d53f730>
<environment: 0x000001e800f38ad0>
> custom_module_position(mod, position = 1)$ui
function (id)
{
ns <- NS(id)
teal.widgets::standard_layout(output = verbatimTextOutput(ns("text")),
encoding = tags$div(ui_transform_data(transform_id(id),
transformers), selectInput(ns("dataname"), "Choose a dataset",
choices = NULL), teal.widgets::verbatim_popup_ui(ns("rcode"),
"Show R code")))
}
<environment: 0x000001e800f38ad0>
> custom_module_position(mod, position = 2)$ui
function (id)
{
ns <- NS(id)
teal.widgets::standard_layout(output = verbatimTextOutput(ns("text")),
encoding = tags$div(selectInput(ns("dataname"), "Choose a dataset",
choices = NULL), ui_transform_data(transform_id(id),
transformers), teal.widgets::verbatim_popup_ui(ns("rcode"),
"Show R code")))
}
<environment: 0x000001e800f38ad0>
> custom_module_position(mod, position = 3)$ui
function (id)
{
ns <- NS(id)
teal.widgets::standard_layout(output = verbatimTextOutput(ns("text")),
encoding = tags$div(selectInput(ns("dataname"), "Choose a dataset",
choices = NULL), teal.widgets::verbatim_popup_ui(ns("rcode"),
"Show R code"), ui_transform_data(transform_id(id),
transformers)))
}
<environment: 0x000001e800f38ad0> |
Hey @vedhav it was hard to propose a suggestion on the text that was not edited in the PR so I allowed myself to make a commit. 799740b with few propositions for changes. We can comment under those changes in the GitHub UI now. I had an impression that there is too much poetic and unclear statements in the introduction. I just made it more developer-like-documentation specific. Let me know your thoughts on the changes. No hard feelings if you still think we can improve this. |
@m7pr I think we will have a hard time maintaining this wrapper function:
I think it will be a good to circle back on this topic when we implement the |
@vedhav totally agree, especially that the solution is based on Any comments to the content changes of the vignette? |
I like the content changes :) |
Hey I do approve but I'd like @donyunardi to review again, as he said he reviewed it previously. Also @donyunardi it is a chance for you to get up to date with the current state of the solution |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice docs and really capture the new feature nicely.
Just small comments here and there.
Co-authored-by: Dony Unardi <[email protected]> Signed-off-by: Vedha Viyash <[email protected]>
Co-authored-by: Dony Unardi <[email protected]> Signed-off-by: Vedha Viyash <[email protected]>
Co-authored-by: Dony Unardi <[email protected]> Signed-off-by: Vedha Viyash <[email protected]>
Changes:
_pkgdown.yml
file (No change made to the file, just styling)example_module()
to handle the selection when datasets change (This can happen when using DDL to change datasets completely, such an example will be added toteal.gallery
)