Abs (?), I have thought about and have (somewhere "up near the top" of my todo list) prototyping a preprocessor for R, and I have relevant code that emits (transpiles, in a way) structured comments into S4 code in https://github.com/gmbecker/S4Coffee.
All that said, until/unless the preprocessor is officially part of the R CMD build step, what putting code like that on CRAN would look like is you keep the raw code in /inst somewhere, and you do the emitting of R code into R/ before building the tarball for submitting. And if you do that CRAN will hav eno problem accepting such a package provided it isn't disallowed in some other way. Best, ~G On Mon, Mar 4, 2019 at 3:28 PM Abs Spurdle <spurdl...@gmail.com> wrote: > It may be possible to create an R-like programming language that > transcompiles into R code (or otherwise constructs R objects and calls > R functions). > > I'm not sure whether it would pass R check or not, I will probably try... > > But the bigger question is: > Should CRAN accept packages written in such a way? > > I could email Kurt Hornik or Uwe Ligges, and ask them. > However, I thought that I would ask here first. > > ______________________________________________ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > [[alternative HTML version deleted]] ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel