| summarize_args_for_long_task | R Documentation |
This function extracts the input relevant for a specific method of a specific class from shiny input.
In addition, it adds the path
to all objects which can not be exported to another R session. These object
must be loaded separately in the new session with the function add_missing_args.
The paths are intended to be used with shiny::ExtendedTask. The final preparation of the arguments
should be done with
The function can also be used to override the default value of
a method or to add value for arguments which are not part of shiny input
(use parameter override_args).
summarize_args_for_long_task(
input,
object_class,
method = "configure",
path_args = list(path_to_embeddings = NULL, path_to_textual_dataset = NULL,
path_to_target_data = NULL, path_to_feature_extractor = NULL, destination_path =
NULL, folder_name = NULL),
override_args = list(),
meta_args = list(py_environment_type = get_py_env_type(), py_env_name =
get_py_env_name(), target_data_column = input$data_target_column, object_class =
input$classifier_type)
)
input |
Shiny input. |
object_class |
|
method |
|
path_args |
|
override_args |
|
meta_args |
|
Returns a named list with the following entries:
args: Named list of all arguments necessary for the method of the class.
path_args: Named list of all paths for loading the objects missing in args.
meta_args: Named list of all arguments that are not part of the arguments of
the method but which are necessary to set up the shiny::ExtendedTask correctly.
Please not that all list are named list of the format (argument_name=values).
Other Utils Studio Developers:
add_missing_args(),
create_data_embeddings_description(),
long_load_target_data()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.