DEPRECATED
credentials(keypair = NULL)
A two-item character vector containing the AWS Access Key ID and AWS Secret Access Key, in that order
A two-item character vector containing an AWS Access Key ID in the first position and the corresponding Secret Access Key in the second position.
Do not use this function. It will be removed in the future.
The preferred way to load AWS credentials is now via environment variables. These environment variables can be set using Sys.setenv()
or by using a local or global .Renviron file. To specify AWS credentials, set the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables. These can be generated via the AWS IAM management console (https://console.aws.amazon.com/iam/home?#security_credential). Note that previously generated secret keys cannot be retrieved.
The credentials()
function provides a legacy way of specify credentials and must be performed before any MTurk API requests can be successfully performed in a given session. The function simply stores the Access Key ID and the Secret Access Key as a two-item character vector in getOption('MTurkR.keypair')
, which is called by default by all MTurkR operations. This operation can also be performed by loading wizard.simple
or from within the MTurkRGUI package interface, which prompts for the keypair the first time it loads in a given R session.