Skip to content

R binaries, platform independent and Design of Experiments

6 messages · Nam-Ky Nguyen, Uwe Ligges, Sean O'Riordain

#
Dear Rexpert,

I would like to thank those who spend time  answering my email on the
burning of a CD with all R binary files for Windows and Linux. I have
tried a couple of suggestions but have not been successful. I will pass
these suggestions to our system administrator and I am sure that he can
sort them out.

I hope that the future version of R will be written in Java so that it is
platform independent. This means there will be a single binary file for
each new version of R. At the moment there are files for Windows, Mac OS,
Fedora 1, 2, 3, 4, SUSE 9.1, 9.2, 9.3, etc.

I also hope that the future of version of R include more DOE (Design of
Experiments) modules. R will be more useful if it is not only a language
and environment for statistical computing and graphics, but also for
design of experiments. I am toying with the idea of adding to R some
modules of my Gendex DOE toolkit (http://designcomputing.net/gendex/). I
learn from an Rexpert that the first step for this exercise is to convert
my java code to C++.  As I do not know C++ (and life is short) please let
me know whether there is an alternative way without this conversion and
whether you can actively help me in this exercise.

Regards,
#
Nam-Ky Nguyen wrote:

            
Honestly ......
a) The sources are available and really easy to compile on all those 
operating systems.
b) You do NOT want to do numerical computations on software available in 
Java byte code.
There are some packages availabe with tools for DOE, please check CRAN.
Further contributions from users who like to do DOE (like you!) are 
welocme, of course!

Uwe Ligges
#
Honestly, I only know how to compile my Java programs. Anyway, we have
been able to work out how to download all files
http://cran.au.r-project.org/. The entire CRAN is 5.4GB. This requires two
DVDs!.
You do not want to do heavy numerical computations with R either. Most
statistical calculation using R requires a fraction of a second and I
cannot see a real difference between say 0.05 second and 0.07 second. NKN.
#
Nam-Ky Nguyen wrote:

            
Oh dear, I only know how to compile my C programs, and I never read the 
docs when something has to be compiled with Java. So we have a problem 
now, since you have not read the docs on compiling R.
The sources of base R are in one file with 12 Mb and it's not that hard 
to say

  ./configure
  make
  make install

is it?


Looks like you have to look for some other software than R.

Uwe Ligges
#
On 02/09/05, Nam-Ky Nguyen <nkn at turing.une.edu.au> wrote:
It is my understanding that the problem with Java is that it wasn't
written with serious numerical computation in mind - as far as I know
only in the latest version have Sun started to be address this issue. 
The byte code for the java virtual machine has a flawed numerical
model which is not fully compliant with the IEEE754 standard - this
has nothing to do with speed of computation.  Furthermore the integer
model is very restrictive when you want to work on random numbers
using bit-twiddling.

cheers!
Sean
1 day later
#
I am not sure that this is an appropriate platform to compare C++ (or C#)
and Java. Besides, there are already several articles on this topic on the
web. I like the BYOL idea. Like BYOB (Bring Your Own Beer), BYO Language
will allow you to use the language of your choice for software development
(Please see http://www.mono-project.com/Languages/).

I take this oppotunity to thank Berwin, Brian, Peter and Uwe for their
helpful emails.