USAID-OHA-SI / gophr

Utility functions related to working with the MER Structured Dataset
https://usaid-oha-si.github.io/gophr/
Other
1 stars 0 forks source link

Cannot use read_psd from S3_WRITE #51

Closed achafetz closed 2 months ago

achafetz commented 3 months ago

By default, the bucket for reading in a file using read_psd is from the S3_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 in S3_READ and if not, checks for it in S3_WRITE.