OCHA-DAP / hdx-signals

HDX Signals
https://un-ocha-centre-for-humanitarian.gitbook.io/hdx-signals/
GNU General Public License v3.0
5 stars 0 forks source link

Use module level exportation in box #217

Open caldwellst opened 1 month ago

caldwellst commented 1 month ago

As referenced in #211, should implement functionality more like this.

utils/init.R

#' @exports
box::use(src/utils/cloud_storage)
box::use(src/utils/location_codes)

So just like Python. My idea would be to use current folder structure to have those init files. Then we would just have to do:

box::use(src/utils)

utils$read_az_file() # from cloud_storage.R
utils$function() # any other function in modules in utils