[R] Writing to gzcon with rawConnection

2014-05-02 Thread Jamie Olson
I would like to encode/decode some text with deflate/gzip, but I'm having trouble. Decoding values from a rawConnection is fairly straightforward, but I'm having trouble encoding values and then retrieving them. gz_out - gzcon(raw_out - rawConnection(raw(0),open=wb))

Re: [R] save/load and package namespaces

2012-11-14 Thread Jamie Olson
Thanks, I'd started to look through serialize.c but got a bit lost. Thanks again! Jamie Olson On Tue, Nov 13, 2012 at 2:12 PM, Duncan Murdoch murdoch.dun...@gmail.comwrote: On 13/11/2012 1:45 PM, Jamie Olson wrote: Correct me if I'm wrong, but it also seems that more generally, everything

Re: [R] R + Hadoop on Amazon

2012-11-13 Thread Jamie Olson
with some custom bootstrap sh scripts to install the necessary packages. Jamie Olson On Thu, Nov 8, 2012 at 3:01 AM, Vignesh Prajapati vign...@tatvic.comwrote: Hey Jamie, Thanks for your comment. I am able to install R , Rstudio and Hadoop on Amazon instance with Ubuntu os. But cant able

[R] Is function(x){x}(5) a valid expression?

2012-11-13 Thread Jamie Olson
' is missing h(4) Error in h(4) : attempt to apply non-function What's going on? Jamie Olson [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] save/load and package namespaces

2012-11-13 Thread Jamie Olson
inherited environments. I imagine this is because in saving yfun, it also saves the environment and any parent environments until some point? Is it checking to see if the environment inherits from .GlobalEnv or something like that? Jamie Olson On Wed, Nov 7, 2012 at 7:57 PM, Duncan Murdoch

[R] save/load and package namespaces

2012-11-07 Thread Jamie Olson
the load failing for being unable to load certain packages. Could anyone help me understand why this happens? Jamie Olson [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] save/load and package namespaces

2012-11-07 Thread Jamie Olson
the load failing for being unable to load certain packages. Could anyone help me understand why this happens? Jamie Olson [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] R + Hadoop on Amazon

2012-11-07 Thread Jamie Olson
I've been using Amazon Elastic Mapreduce combined with RHadoop with great success. The only real problem is that the default JAVA_HOME doesn't points to a jdk that works with rJava, so you have to correct it. I've been meaning to do a writeup on it and will update you once it's up. Jamie Olson

Re: [R] save/load and package namespaces

2012-11-07 Thread Jamie Olson
Thank you! This explains the error thrown by getNamespace() for the missing package. So I imagine this will happen for any function's environment? Do you know if this should happen for S3 objects or just S4? Jamie Olson On Wed, Nov 7, 2012 at 4:10 PM, Duncan Murdoch murdoch.dun

Re: [R] Pointers in R

2011-06-15 Thread Jamie Olson
structures built in pure R. Jamie Olson School of Computer Science Carnegie Mellon University 5000 Forbes Ave. Pittsburgh, PA 15213 jfol...@cs.cmu.edu On Sun, Jun 12, 2011 at 7:36 PM, Jeff Newmiller jdnew...@dcn.davis.ca.uswrote: Lists are recursive and heterogenous in R. Just assign the values

Re: [R] How can I write methods for 'as()'?

2011-06-15 Thread Jamie Olson
of the motivation behind the S4 classes. So maybe it really just is that kludgy for s3 classes. Jamie Olson School of Computer Science Carnegie Mellon University 5000 Forbes Ave. Pittsburgh, PA 15213 jfol...@cs.cmu.edu On Mon, Jun 6, 2011 at 12:19 PM, Janko Thyson janko.thyson.rst...@googlemail.com wrote

Re: [R] Traversing KD-tree (or equivalent) for radius-based search

2011-06-15 Thread Jamie Olson
to whatever spatial data structures you want, e.g. k-d or r(+/*)-trees. Jamie Olson School of Computer Science Carnegie Mellon University 5000 Forbes Ave. Pittsburgh, PA 15213 jfol...@cs.cmu.edu On Thu, Jun 2, 2011 at 8:43 PM, Andrea Taverna a.t...@libero.it wrote: Hi, I'm trying

Re: [R] Calling R from Java

2011-06-14 Thread Jamie Olson
You might have better luck with the rJava mailing list: http://mailman.rz.uni-augsburg.de/mailman/listinfo/stats-rosuda-devel http://mailman.rz.uni-augsburg.de/mailman/listinfo/stats-rosuda-devel Jamie Olson School of Computer Science Carnegie Mellon University 5000 Forbes Ave. Pittsburgh, PA