This could be a param, but ideally we want the user to be able to run the same code on their local machine or in Workbench. To do so, we need a sub function build into read_psd that checks if the PSD exists in S3_READ and if not, checks for it in S3_WRITE.
By default, the bucket for reading in a file using
read_psd
is from theS3_READ
bucket.https://github.com/USAID-OHA-SI/gophr/blob/1dfa65b9aeddee4de04eb6993d03ca426c5e42d1/R/read_psd.R#L84-L86
This could be a param, but ideally we want the user to be able to run the same code on their local machine or in Workbench. To do so, we need a sub function build into
read_psd
that checks if the PSD exists inS3_READ
and if not, checks for it inS3_WRITE
.