idmtools_models.r.r_task module

class idmtools_models.r.r_task.RTask(command: Union[str, idmtools.entities.command_line.CommandLine] = None, platform_requirements: Set[idmtools.entities.platform_requirements.PlatformRequirements] = <factory>, _ITask__pre_creation_hooks: List[Callable[[Union[ForwardRef('Simulation'), ForwardRef('IWorkflowItem')]], NoReturn]] = <factory>, _ITask__post_creation_hooks: List[Callable[[Union[ForwardRef('Simulation'), ForwardRef('IWorkflowItem')]], NoReturn]] = <factory>, common_assets: idmtools.assets.asset_collection.AssetCollection = <factory>, transient_assets: idmtools.assets.asset_collection.AssetCollection = <factory>, _task_log: logging.Logger = <factory>, image_name: str = None, build: bool = False, build_path: Union[str, NoneType] = None, Dockerfile: Union[str, NoneType] = None, pull_before_build: bool = True, use_nvidia_run: bool = False, _DockerTask__image_built: bool = False, script_path: str = None, r_path: str = 'Rscript', extra_libraries: list = <factory>)

Bases: idmtools.core.docker_task.DockerTask

script_path: str = None
r_path: str = 'Rscript'
extra_libraries: list
property command

Update executable with new python_path Returns: re-build command

reload_from_simulation(simulation: idmtools.entities.simulation.Simulation, **kwargs)

Optional hook that is called when loading simulations from a platform

gather_common_assets()idmtools.assets.asset_collection.AssetCollection

Gather R Assets Returns:

gather_transient_assets()idmtools.assets.asset_collection.AssetCollection

Gather transient assets. Generally this is the simulation level assets

Returns:

pre_creation(parent: Union[idmtools.entities.simulation.Simulation, idmtools.entities.iworkflow_item.IWorkflowItem])

Called before creation of parent

Parameters

parent – Parent

Returns

None

Raise:

ValueError if script name is not provided

class idmtools_models.r.r_task.RTaskSpecification

Bases: idmtools.registry.task_specification.TaskSpecification

get(configuration: dict)idmtools_models.r.r_task.RTask

Get instance of RTask

Parameters

configuration – configuration for task

Returns

RTask with configuration

get_description() → str

Returns the Description of the plugin

Returns

Plugin Description

get_type() → Type[idmtools_models.r.r_task.RTask]

Get Type for Plugin

Returns

RTask