credentials: Specify AWS Credentials

Description Usage Arguments Details Value Author(s)

Description

DEPRECATED

Usage

1
credentials(keypair = NULL)

Arguments

keypair

A two-item character vector containing the AWS Access Key ID and AWS Secret Access Key, in that order

Details

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.

Value

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.

Author(s)

Thomas J. Leeper


cloudyr/MTurkR documentation built on June 4, 2019, 3:30 p.m.