Closed MarkEdmondson1234 closed 6 years ago
Ok this works
#* Get data
#* @param client the clientname
#* @param date One day of data to fetch
#* @param config A config file TBD
#* @post /datalake/<client>/google_analytics
function(client = "none", date = Sys.Date(), config = NULL){
plumber_ga(client, date, config)
}
I'm having some trouble getting the syntax on getting a plumbed function when that function is defined in another file.
I want to put a standard plumb function in a package. My first try was something like this:
and then trying to call that function in an API file:
...but when I try that, I get an
client is not defined
error. Is there a way to do this? I guess the annotations clash or something - or do I need to define the function only once in the api.R file?