[Rd] R installation glitches.

2006-07-06 Thread Bo Peng
Dear list, I installed R 2.3.1 on a solaris machine. The first time, I used the wrong option --enable-shlib, the installation went smoothly (glitch 1), but of course did not generate libR.so. So, I ran ./configure again with --enable-R-shlib, make and make install went well but still there was

Re: [Rd] Provide both shlib and standard versions of R?

2006-01-16 Thread Bo Peng
Why guess? There are accurate statements in the R-admin manual, I read the manual 2 years ago, and the info I got was still correct. and the RH RPM change was discussed on this list in 2006: https://stat.ethz.ch/pipermail/r-devel/2006-January/036118.html I simply do not know RPMs have been

Re: [Rd] Provide both shlib and standard versions of R?

2006-01-15 Thread Bo Peng
That is not true, almost all binaries come with R as shared library - it is in fact the default on Mac OS X and Windows. Most Linux distributions provide a shared library binary as well. This would be good news. But at least, under linux, ./configure --help --enable-R-shlibbuild the

Re: [Rd] Provide both shlib and standard versions of R?

2006-01-15 Thread Bo Peng
then either build your own with correct options or talk to your distribution's packaging team. It seems that my knowledge about this option is outdated. When I first encountered this problem two years ago, the R/rpm distribution came with no libR.so. I was told that --enable-R-shlib would lead

[Rd] R plot display problem under windows when using python rpy module.

2006-01-09 Thread Bo Peng
Dear list, Rpy is a python module that provides python interface to R. The following simple commands from rpy import * r.plot(0) is supposed to create a window that displays the result of plot(0). However, we observe that 1. Under *nix, rpy+R+python work as expected 2. Under windows, python

Re: [Rd] R plot display problem under windows when using python rpy module.

2006-01-09 Thread Bo Peng
On 1/9/06, Prof Brian Ripley [EMAIL PROTECTED] wrote: How is Rpy calling R? Presumably R is running single-threaded, and the problem is likely to be that Rpy is using blocking I/O on the R process and hence blocking the GUI callbacks that drive the window. The not-so-simple answer is not to

Re: [Rd] R plot display problem under windows when using python rpy module.

2006-01-09 Thread Bo Peng
I was wondering what is the difference between rpy and RSPython. The main difference is that rpy does one-way communication, is simpler than RSPython, than is easier to use. So I have a question for you - why rpy instead of RSPython? Have you tried both, and can you give a comparison of pros

Re: [Rd] as.Date() , feature or bug?

2005-09-15 Thread Bo Peng
This problem was brought up by Xu Neng [EMAIL PROTECTED] in the rpy-list. Quote Remember the old times when computer guys thought the year 2000 was too far away to be worried? In my case, the dates like -06-6 and -09-09 are used as special missing codings for dates. If R cannot handle

[Rd] How difficult is it to wrap a large C++ library with R?

2005-07-04 Thread Bo Peng
by objects, not functions. (I notice that manuals of R libraries are simple function references.) Many thanks in advance. -- Bo Peng Department of Statistics Rice University http://bp6.stat.rice.edu:8080/ __ R-devel@r-project.org mailing list https

Re: [Rd] How difficult is it to wrap a large C++ library with R?

2005-07-04 Thread Bo Peng
* Wrap C++ class hierarchy. Virtual functions need to be supported. (SWIG can generate Python shadow classes that behave almost exactly like the underlying C++ classes) This is hard to do in R, because the R object model is quite different from that of C++ (whereas Python's is more

Re: [Rd] How difficult is it to wrap a large C++ library with R?

2005-07-04 Thread Bo Peng
SWIG is a very nice idea. ... SWIG is a wonderful tool that makes wrapping C++ code super-easy. I can write pure C++ code and even test them by writing a main() function. Then, using a simple interface file, all my C++ classes becomes Python (shadow) classes like magic. It will take much more

[Rd] efficiency of sample() with prob.

2005-06-21 Thread Bo Peng
Dear list, A while ago, Vadim asked opinions on improving efficiency of sample() with prob, e.g. sample with replacement with weight. ( https://stat.ethz.ch/pipermail/r-devel/2004-September/030844.html ) He did not post what he ended up with this problem though. I am having exactly the same