build_dict: Return a dict of key and value pair if value is not None,...

View source: R/utils.R

build_dictR Documentation

Return a dict of key and value pair if value is not None, otherwise return an empty dict.

Description

Return a dict of key and value pair if value is not None, otherwise return an empty dict.

Usage

build_dict(key, value = NULL)

Arguments

key

(str): input key

value

(str): input value

Value

dict: dict of key and value or an empty dict.

See Also

Other sagemaker_utils: .aws_partition(), .download_files_under_prefix(), base_from_name(), base_name_from_image(), common_variables, create_tar_file(), download_file(), download_folder(), get_config_value(), get_short_version(), name_from_base(), name_from_image(), regional_hostname(), repack_model(), retries(), sagemaker_short_timestamp(), sagemaker_timestamp(), secondary_training_status_changed(), secondary_training_status_message(), sts_regional_endpoint(), unique_name_from_base()


DyfanJones/sagemaker-r-local documentation built on June 14, 2022, 10:32 p.m.