Re: [Rd] how to manipulate dput output format

2012-06-25 Thread andre zege
On Mon, Jun 25, 2012 at 1:08 PM, Simon Urbanek wrote: > > On Jun 25, 2012, at 11:57 AM, andre zege wrote: > > > > > > > On Mon, Jun 25, 2012 at 11:17 AM, Simon Urbanek < > simon.urba...@r-project.org> wrote: > > > > On Jun 25, 2012, at 10:20 AM, andre zege wrote: > > > > > dput() is intended to be

Re: [Rd] how to manipulate dput output format

2012-06-25 Thread Simon Urbanek
On Jun 25, 2012, at 11:57 AM, andre zege wrote: > > > On Mon, Jun 25, 2012 at 11:17 AM, Simon Urbanek > wrote: > > On Jun 25, 2012, at 10:20 AM, andre zege wrote: > > > dput() is intended to be parsed by R so the above is not possible without > > massaging the output. But why in the would

Re: [Rd] how to manipulate dput output format

2012-06-25 Thread andre zege
On Mon, Jun 25, 2012 at 11:17 AM, Simon Urbanek wrote: > > On Jun 25, 2012, at 10:20 AM, andre zege wrote: > > > dput() is intended to be parsed by R so the above is not possible > without massaging the output. But why in the would would you use dput() for > something that you want to read in Jav

Re: [Rd] how to manipulate dput output format

2012-06-25 Thread Simon Urbanek
On Jun 25, 2012, at 10:20 AM, andre zege wrote: > dput() is intended to be parsed by R so the above is not possible without > massaging the output. But why in the would would you use dput() for something > that you want to read in Java? Why don't you use a format that Java can read > easily -

Re: [Rd] how to manipulate dput output format

2012-06-25 Thread andre zege
> > dput() is intended to be parsed by R so the above is not possible without > massaging the output. But why in the would would you use dput() for > something that you want to read in Java? Why don't you use a format that > Java can read easily - such as JSON? > > Cheers, > Simon > > > > > Yeap, e

Re: [Rd] how to manipulate dput output format

2012-06-20 Thread Dirk Eddelbuettel
On 20 June 2012 at 10:33, Simon Urbanek wrote: | | On Jun 19, 2012, at 11:04 AM, andre zege wrote: | | > I am reading into Java dput output for a matrix, more specifically for a | > file backed big-matrix. I basically need to lift dimnames for a matrix from | > dput output. It's no big deal, but

Re: [Rd] how to manipulate dput output format

2012-06-20 Thread Simon Urbanek
On Jun 19, 2012, at 11:04 AM, andre zege wrote: > I am reading into Java dput output for a matrix, more specifically for a > file backed big-matrix. I basically need to lift dimnames for a matrix from > dput output. It's no big deal, but the code is very 'hackish' due to the > need to get rid of

[Rd] how to manipulate dput output format

2012-06-19 Thread andre zege
I am reading into Java dput output for a matrix, more specifically for a file backed big-matrix. I basically need to lift dimnames for a matrix from dput output. It's no big deal, but the code is very 'hackish' due to the need to get rid of quotes, endlines, parenthesis, etc. I was wondering if i c