From macrakis at gmail.com  Wed May 13 22:40:09 2009
From: macrakis at gmail.com (Stavros Macrakis)
Date: Wed, 13 May 2009 16:40:09 -0400
Subject: [Rd] Can we generate exe file using R? What is the maximum file
	size valid?
In-Reply-To: <guf9tn$s60$1@ger.gmane.org>
References: <9dddb5a60905061645u764d319dhbb5d3e5489e8aa8d@mail.gmail.com>
	<4A02C4AF.3090203@statistik.tu-dortmund.de>
	<guf9tn$s60$1@ger.gmane.org>
Message-ID: <8b356f880905131340t7d83c21fr47ce2cac0b17a86c@mail.gmail.com>

There are two distinct and orthogonal questions here:

1) Is it possible to package an R program/system in such a way that it
can be distributed as a single executable file (including the R
system, any necessary loaded packages, plus the application program)
and run without an installation of R (which sets up library
directories etc.)?

2) Is it possible to compile R to bytecodes or machine language?

The answers to these questions are independent.  It is perfectly
possible to have an interpreted system which is distributed as a
single executable file (using e.g. unexec to save the fully-loaded
state).  It is also perfectly possible to have a compiled system which
requires configuration of library directories etc.

I believe the original question on this thread was about (1), but I am
not certain.  It also appears that the answer to (1) is 'no', but I am
not certain about that either.  I wouldn't think that it would be
impossible to add 'unexec' to R, but I don't know R's internals.

           -s

On Wed, May 13, 2009 at 4:17 PM, Matthew Dowle <mdowle at mdowle.plus.com> wrote:
>
> Does Ra get close to compiled R ? ? "The R code is compiled on the fly to
> bytecode which is executed internally by an interpreter in C." ?The timing
> tests look impressive.
> http://www.milbo.users.sonic.net/ra/
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



[Rd] Can we generate exe file using R? What is the maximum file size valid?
Stavros Macrakis