pbrouilly@gphy.campus.univ-poitiers.fr
2004-Sep-30 08:39 UTC
[R] Interface between R and Perl
Hi, I have made a GUI in PerlTk and I would use R within perl. I actually try to install RSPerl but I have some problems during the compilation In order to call R from perl I use actually an other system based on the OPEN command in perl. It works fine but when I tried to call the fonction plot() of R from perl the plot do not appears and a file named plot.ps is generated. Unfortunalelly, my plot is dynamic (I also use the identify() command) so I can't integrate this plot as an jpeg image for example. My question is : Is there a solution to call the plot() and identify() R commands from perl in order to have a dynamic plot ?? can RSPerl do this or not ?? If it can I will spend more time to install it.... but it looks hard Thank you very much and excuse me for my english :-)
Hi, I've installed rgl package through R CMD INSTALL on a Debian-Sarge machine (PIV) without any compiling error (see attached file), but when trying to load this package within R (and also Rcmdr library) I get:> library(rgl)RGL: GLX extension missing on server Error in firstlib(which.lib.loc, package) : error rgl_init error in library(rgl) : .First.lib failed Segmentation fault Same failure problem if I use the apt option (apt-get install r-cran-gl). I've searched through the R mail archives but couldn't find or understand the answer for this problem. Thanks in advance! Antonio Rodr?guez -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: rgl_rcmdr_compilation.txt Url: https://stat.ethz.ch/pipermail/r-help/attachments/20040930/c54fd6ca/rgl_rcmdr_compilation.txt
I don't think RSPerl can do this from within perl, but others would know better than I. Have you considered using tcltk for R? You could recreate the GUI there, if the GUI is that is the use of perl in your application. Sean On Sep 30, 2004, at 4:39 AM, pbrouilly at gphy.campus.univ-poitiers.fr wrote:> Hi, > > I have made a GUI in PerlTk and I would use R within perl. > I actually try to install RSPerl but I have some problems during the > compilation > > In order to call R from perl I use actually an other system based on > the OPEN > command in perl. > It works fine but when I tried to call the fonction plot() of R from > perl the > plot do not appears and a file named plot.ps is generated. > Unfortunalelly, my plot is dynamic (I also use the identify() command) > so I > can't integrate this plot as an jpeg image for example. > > My question is : > Is there a solution to call the plot() and identify() R commands from > perl in > order to have a dynamic plot ?? > can RSPerl do this or not ?? > If it can I will spend more time to install it.... but it looks hard > > Thank you very much and excuse me for my english :-) > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html