[Rd] R bug or ghostscript bug or my bug?

2009-01-20 Thread ivo welch
Dear R developers: The following R program produces a pdf file that does not survive ghostscript distillation correctly. The undistilled version is at http://welch.econ.brown.edu/temp/try.PDF while the distilled version is at http://welch.econ.brown.edu/temp/try.pdf . When previewed, the points

[Rd] pass by reference for S4

2009-01-20 Thread Biczok Rudolf
Hi all; Is it possible to modify the "@" operator that it can handle references (or external pointers) of S4 Object instead of the real Objects? Or is there any technical or compatibility issue which make it impossible? I look forward to hear from you and also hope that you don't hate

Re: [Rd] sub and gsub treat \\ incorrectly (PR#13454)

2009-01-20 Thread Andriy Miranskyy
Thank you, William! This makes things clearer. I am trying to create a tiny converter of free text to Tex format. In order to do that I need to replace all "_" with "\_" and all "&" with "\&". Could you please tell me, is there a way of doing it using gsub? Regards, Andriy Monday, January 19, 20

Re: [Rd] sub and gsub treat \\ incorrectly (PR#13454)

2009-01-20 Thread Prof Brian Ripley
On Tue, 20 Jan 2009, Andriy Miranskyy wrote: Thank you, William! This makes things clearer. I am trying to create a tiny converter of free text to Tex format. In order to do that I need to replace all "_" with "\_" and all "&" with "\&". Could you please tell me, is there a way of doing it usin

Re: [Rd] R bug or ghostscript bug or my bug?

2009-01-20 Thread Prof Brian Ripley
I think you are misusing 'distill' here. The canonical distiller is Adobe Acrobat's. and that converts ps to pdf. I've tried your example, and Acrobat can optimize it (probably what you wanted) and if I convert it to .eps in Acrobat, Distiller can distill it. So, nothing wrong with R's pdf

Re: [Rd] Package Matrix does not compile in R-devel_2009-01-10

2009-01-20 Thread Hiroyuki Kawakatsu
On Tue, 13 Jan 2009, Prof Brian Ripley wrote: > I've discovered that Mac OS still has a FreeBSD make with which I can > reproduce this. So I am working with Martin on a patch for the next > Matrix update. > > Meanwhile, if there is an issue with building R-devel with GNU make > under FreeBSD (e.g

Re: [Rd] Package Matrix does not compile in R-devel_2009-01-10

2009-01-20 Thread Prof Brian Ripley
Matrix has already been updated to be complatible with the FreeBSD make: you will get the update via tools/rsync-recommended. On Tue, 20 Jan 2009, Hiroyuki Kawakatsu wrote: On Tue, 13 Jan 2009, Prof Brian Ripley wrote: I've discovered that Mac OS still has a FreeBSD make with which I can rep

[Rd] Embeding R

2009-01-20 Thread Sylvain Loiseau
Hi, I'm planning to embed R into an application, with the following context: - This application is written in Java (and managed with maven). I plan accessing R using JRI. - This application must be installable on several plateform (linux, mac os, windows). - The R engine must embed library,

Re: [Rd] Embeding R

2009-01-20 Thread Simon Urbanek
On Jan 20, 2009, at 10:37 , Sylvain Loiseau wrote: Hi, I'm planning to embed R into an application, with the following context: - This application is written in Java (and managed with maven). I plan accessing R using JRI. - This application must be installable on several plateform (linux

Re: [Rd] Embeding R

2009-01-20 Thread Sylvain Loiseau
Yes. Since you mentioned JRI - it gives you all of the above for free (there are CRAN binaries for Windows and OS X; it installs on unix system with Java; you can link arbitrary libraries from R - that's how R works). Good pointers are JavaGD (for graphics so you can embed it in your Java l

Re: [Rd] Embeding R

2009-01-20 Thread Prof Brian Ripley
On Tue, 20 Jan 2009, Sylvain Loiseau wrote: Yes. Since you mentioned JRI - it gives you all of the above for free (there are CRAN binaries for Windows and OS X; it installs on unix system with Java; you can link arbitrary libraries from R - that's how R works). Good pointers are JavaGD (for gr

Re: [Rd] Embeding R

2009-01-20 Thread Simon Urbanek
On Jan 20, 2009, at 12:28 , Sylvain Loiseau wrote: Yes. Since you mentioned JRI - it gives you all of the above for free (there are CRAN binaries for Windows and OS X; it installs on unix system with Java; you can link arbitrary libraries from R - that's how R works). Good pointers are Jav