From bennymack at gmail.com Thu Nov 3 06:24:32 2011 From: bennymack at gmail.com (Ben. B.) Date: Thu, 3 Nov 2011 09:24:32 -0400 Subject: [Buffalo-pm] Meeting Next Tuesday In-Reply-To: References: <12875181.1319241297633.JavaMail.root@elwamui-norfolk.atl.sa.earthlink.net> Message-ID: https://github.com/bennymack/Net-Rserve BAM! Here's a quickstart guide to get Rserve running: $ R > install.packages("Rserve") > library(Rserve) > Rserve() Then run this from your cloned Net-Rserve git repo: $ perl -Ilib t/Net/RserveTest.pm And if the tests pass, try this: $ perl -Ilib lib/Net/Rserve.pm It will read R commands from STDIN and dump the resulting perl data structure. $ RSERVE_VERBOSE=0 perl -Ilib lib/Net/Rserve.pm list(str=R.version.string,foo=1:10,bar=1:5/2,logic=c(TRUE,FALSE,NA)) $result = { 'bar' => [ '0.5', '1', '1.5', '2', '2.5' ], 'str' => 'R version 2.13.2 (2011-09-30)', 'foo' => [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], 'logic' => [ 1, 0, undef ] } It's a pretty faithful adaptation of the simple.php example we looked at so it comes with the same limitations. For example, I noticed that it doesn't like nested named lists. $ RSERVE_VERBOSE=0 perl -Ilib lib/Net/Rserve.pm list( l=list(foo=1:5), bar=1:5/2 ) Can't use string ("foo") as an ARRAY ref while "strict refs" in use at lib/Net/Rserve.pm line 211, line 1. Not sure if this is by design or what. Here's the output from R: > list( l=list(foo=1:5), bar=1:5/2 ) $l $l$foo [1] 1 2 3 4 5 $bar [1] 0.5 1.0 1.5 2.0 2.5 SO maybe the best solution is, don't do that? Hehe. On Mon, Oct 24, 2011 at 4:34 PM, Dan Magnuszewski wrote: > Just a reminder that we're meeting tomorrow at 7PM at Buffalo Lab/Makerspace > (523 Main St, 3rd floor). Tell your Perl programming friends! > > Ben, > > Sounds good. > > On Sat, Oct 22, 2011 at 8:55 PM, Ben. B. wrote: >> >> I could redo my GNU/Parallel talk from barcamp if anyone is interested. >> I'm pretty sure Mike and Dan missed it. It's designed to fit into a 10 >> minute slot if that helps. >> >> On Fri, Oct 21, 2011 at 7:54 PM, keith tarbell >> wrote: >>> >>> I'll be there, make sure you use the entrance to the left (not the >>> Chinese restaurant!), that takes you to the 3rd floor. >>> >>> >>> >>> >>> -----Original Message----- >>> >From: Dan Magnuszewski >>> >Sent: Oct 21, 2011 2:04 PM >>> >To: "Eye, Kevin" >>> >Cc: Buffalo Perl Mongers >>> >Subject: Re: [Buffalo-pm] Meeting Next Tuesday >>> > >>> >Cool! E. Huron, Washington, there's a surface lot next to 500 Washington >>> >that you really don't need to pay for after 5. But anywhere on the >>> > street >>> >around that area is free. >>> > >>> >-Dan >>> > >>> >On Fri, Oct 21, 2011 at 1:18 PM, Eye, Kevin wrote: >>> > >>> >> I'd like to come (for a change), too. Where is best to park down >>> >> there? >>> >> >>> >> ?- Kevin >>> >> >>> >> >>> >> On Oct 21, 2011, at 12:26 PM, Dan Magnuszewski wrote: >>> >> >>> >> I'm up for a meeting. >>> >> >>> >> I'm trying to write a Perl client for Rserve ( >>> >> http://www.rforge.net/Rserve/dev.html) and my binary data skills in >>> >> Perl >>> >> suck (should I use pack/unpack or chr/ord?). >>> >> >>> >> Maybe we could do a little workshop/hackathon and make build some >>> >> code? >>> >> >>> >> -Dan >>> >> >>> >> On Fri, Oct 21, 2011 at 9:07 AM, Mike Canzoneri >>> >> >> >> > wrote: >>> >> Everyone, >>> >> The next Perl Mongers meeting is on 2011-10-25 (which is next Tuesday) >>> >> at 7:00PM at the Main Washington Exchange (http://www.themwx.com). >>> >> >>> >> Who wants to talk about something interesting? >>> >> >>> >> ?Who can make it? >>> >> >>> >> -Mike Canzoneri >>> >> _______________________________________________ >>> >> Buffalo Perl Mongers Homepage >>> >> http://buffalo.pm.org >>> >> >>> >> Buffalo-pm mailing list >>> >> Buffalo-pm at pm.org >>> >> http://mail.pm.org/mailman/listinfo/buffalo-pm >>> >> >>> >> _______________________________________________ >>> >> Buffalo Perl Mongers Homepage >>> >> http://buffalo.pm.org >>> >> >>> >> Buffalo-pm mailing list >>> >> Buffalo-pm at pm.org >>> >> http://mail.pm.org/mailman/listinfo/buffalo-pm >>> >> >>> >> >>> >> >>> >> -- >>> >> Kevin Eye >>> >> Enterprise Application Services >>> >> University at Buffalo >>> >> 108 MFAC, Ellicott Complex >>> >> Buffalo, NY 14261 >>> >> eye at buffalo.edu >>> >> (716) 645-4579 >>> >> >>> >> >>> >>> _______________________________________________ >>> Buffalo Perl Mongers Homepage >>> http://buffalo.pm.org >>> >>> Buffalo-pm mailing list >>> Buffalo-pm at pm.org >>> http://mail.pm.org/mailman/listinfo/buffalo-pm >> > > > _______________________________________________ > Buffalo Perl Mongers Homepage > http://buffalo.pm.org > > Buffalo-pm mailing list > Buffalo-pm at pm.org > http://mail.pm.org/mailman/listinfo/buffalo-pm >