You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Interesting post and twitter discussion! I came across R code generation when working with the Google APIs since all the libraries can be generated from Google’s Discovery API. googleAuthR will generate working R functions and put them in a package that may even pass a CRAN CMD check - however usually a bit of tweaking is needed to make them more usable by humans. But for documentation alone it’s a good basis to start from.
The analysis addin in my phenoptrReports package takes user input and generates a script to perform a data analysis. This is a bit of a different use case than any you present here. The code is pretty clunky - a lot of glue::glue and conditional code. I would love to find a better way to do it.
Literate programming also relies on some similar methods to extract and generate code from documents; actually, the compiler package is probably the most-used literate program in circulation right now.
Code generation in R packages - R-hub blog
https://blog.r-hub.io/2020/02/10/code-generation/
The text was updated successfully, but these errors were encountered: