Invoke a targets task from inside a callr function (without error handling).
Source: R/utils_callr.R
tar_callr_inner_try.RdNot a user-side function. Do not invoke directly. Exported for internal purposes only.
Usage
tar_callr_inner_try(
targets_function,
targets_arguments,
options,
envir = NULL,
parent,
script,
store,
fun,
pid_parent
)Arguments
- targets_function
A function from
targetsto call.- targets_arguments
Named list of arguments of targets_function.
- options
Names of global options to temporarily set in the
callrprocess.- envir
Name of the environment to run in. If
NULL, the environment defaults totar_option_get("envir").- parent
Parent environment of the call to
tar_call_inner().- script
Character of length 1, path to the target script file. Defaults to
tar_config_get("script"), which in turn defaults to_targets.R. When you set this argument, the value oftar_config_get("script")is temporarily changed for the current function call. Seetar_script(),tar_config_get(), andtar_config_set()for details about the target script file and how to set it persistently for a project.- store
Character of length 1, path to the
targetsdata store. Defaults totar_config_get("store"), which in turn defaults to_targets/. When you set this argument, the value oftar_config_get("store")is temporarily changed for the current function call. Seetar_config_get()andtar_config_set()for details about how to set the data store path persistently for a project.- fun
Character of length 1, name of the
targetsfunction being called.- pid_parent
Integer of length 1, process ID of the calling process, e.g. the one that called
tar_make().