Skip to contents

Updates the email address the ScPCA Portal will use to notify you when the dataset is ready for download, by sending a PUT request with a new email value. The dataset's samples, projects, and format are left unchanged.

Usage

set_dataset_email(dataset, email, auth_token = Sys.getenv("SCPCA_AUTH_TOKEN"))

Arguments

dataset

the dataset UUID string, or a list with an $id element.

email

the email address to use for the download notification.

auth_token

an authorization token from get_auth(). Defaults to the SCPCA_AUTH_TOKEN environment variable, which get_auth() sets automatically.

Value

the updated dataset detail as a list (invisibly)

Details

A dataset that has already been started cannot be modified.

Examples

if (FALSE) { # \dontrun{
set_dataset_email(ds, email = "user@example.com")
} # }