title: How do you load an existing S3 bucket in Sagemaker using R Programming?
body: <p>I know how to use python to load an existing s3 bucket in sage maker using R. Something like this:</p>
  
  <pre><code>role = get_execution_role()
  region = boto3.Session().region_name
  bucket='existing S3 Bucket' 
  data_key = 'Data file in the existing s3 bucket'
  data_location = 's3://{}/{}'.format(bucket, data_key)
  </code></pre>
  
  <p>How can one recreate this using R in Sage maker? All i see in the available documentation is how to create a new bucket but none of it mentions how to use an existing S3 bucket. Help would be appreciated.</p>
  
  <p>link to documentation for R in sage maker:
  <a href="https://aws.amazon.com/blogs/machine-learning/using-r-with-amazon-sage" rel="nofollow noreferrer">https://aws.amazon.com/blogs/machine-learning/using-r-with-amazon-sage</a> maker/</p>