create_s3_session | R Documentation |
Creates an Amazon Simple Storage Service session. (This is where DataCamp Data Connector data is hosted).
create_s3_session(
access_key_id = get_env_var_aws_access_key(),
secret_access_key = get_env_var_aws_secret(),
region = get_env_var_aws_region()
)
access_key_id |
String containing the S3 access key. |
secret_access_key |
String containing the S3 secret access key. |
region |
String containing the S3 default region. |
Find the arguments to this function in the Admin Portal for your DataCamp group. See Reporting -> Export -> Data Connector -> View Configuration Details. It is recommended to store these values as environment variables.
s3
## Not run:
Sys.setenv(
AWS_ACCESS_KEY_ID = "your access key ID",
AWS_SECRET_ACCESS_KEY = "your secret key",
AWS_REGION = "your region"
)
s3_sess <- create_s3_session()
str(s3_sess, 1)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.