From g@bembecker @end|ng |rom gm@||@com  Tue Mar  5 00:52:24 2019
From: g@bembecker @end|ng |rom gm@||@com (Gabriel Becker)
Date: Mon, 4 Mar 2019 15:52:24 -0800
Subject: [Rd] 
 Should CRAN accept packages with non-R code that transcompiles
 into R code?
In-Reply-To: <CAB8pepx3d3faRfPTDo97ebOKA1f4v=GO6_dbL7QC2DtkqZV0=w@mail.gmail.com>
References: <CAB8pepx3d3faRfPTDo97ebOKA1f4v=GO6_dbL7QC2DtkqZV0=w@mail.gmail.com>
Message-ID: <CAD4oTHFhp1qUfFhLeCh_jBXBYH30mDjvFSeGhW5OBbnkC1t13g@mail.gmail.com>

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 <spurdle.a at 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 at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

	[[alternative HTML version deleted]]



[Rd] Should CRAN accept packages with non-R code that transcompiles into R code?
Gabriel Becker