When working with PDAP, you will need to access data from either the read or write buckets and need the credentials to do so. This function stores the Access Key associated with your account, `Sys.getenv("AWS_ACCESS_KEY_ID")`. To use locally, the user will need to store `set_key('pdap', 'access')`, which securely stores this information with `keyring` (we can only write, not read from a local machine).
pdap_access()
Other authentication:
datim_pwd()
,
datim_user()
,
get_account()
,
get_key()
,
get_keys()
,
get_s3key()
,
get_services()
,
load_secrets()
,
pano_pwd()
,
pano_user()
,
pdap_bucket()
,
pdap_secret()
,
set_account()
,
set_datim()
,
set_email()
,
set_key()
,
set_pano()
,
set_s3keys()
if (FALSE) { # \dontrun{
library(grabr)
s3_upload(upload_file_path,
bucket = pdap_bucket("write"),
prefix = "usaid/",
access_key = pdap_access(),
secret_key = pdap_secret())
#identify path to dataset uploaded
path_wrkbnch <- s3_objects(bucket = pdap_bucket("write"),
prefix = "usaid/",
access_key = pdap_access(),
secret_key = pdap_secret()) %>%
filter(str_detect(key, "Moz")) %>%
pull(key)
#read
df_msd <- s3read_using(read_psd,
bucket = pdap_bucket("write"),
object = path_wrkbnch) } # }