@blairj09 suggests to have the ability to automatically create a small R package to ingest all plumber api routes given to the plumber router swagger spec
- Roxygen comments could be created automatically.
- Function parameters could be created automatically
- Parameter validation / coercion? (
as.character / stop if not numeric)
- Function name should corresponds to route path
- Add comments as details in the roxygen comments
- Insert
#TODO for function body
With the same idea in mind, a function could be made to generate a plumber.R file from a swagger api file spec.
Since it is a clean separation of functionality, these implementations could be done in another R package.
This idea would close the gap from just being able to provide an R api and to being able to ingest external R execution naturally.
@blairj09 suggests to have the ability to automatically create a small R package to ingest all plumber api routes given to the plumber router swagger spec
as.character/ stop if not numeric)#TODOfor function bodyWith the same idea in mind, a function could be made to generate a
plumber.Rfile from a swagger api file spec.Since it is a clean separation of functionality, these implementations could be done in another R package.
This idea would close the gap from just being able to provide an R api and to being able to ingest external R execution naturally.