View source: R/utils_environments_namespaces.R
create_simple_get_function | R Documentation |
Useful when the object depends on a long running task such as a database query.
create_simple_get_function(obj_nm, env_expr, call_expr, as_character = FALSE)
obj_nm |
|
env_expr |
|
call_expr |
|
as_character |
Should the function return code as a character? (Default is an expression) |
chr
The function at the console for copy/paste
create_simple_get_function("mt_cars", .GlobalEnv, dplyr::mutate(mtcars, cyl = as.character(cyl)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.