Re: [Rd] how to manipulate dput output format

From: andre zege <>
Date: Mon, 25 Jun 2012 10:20:30 -0400

> 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, except i was just working with someone elses choice. Bigmatrix code uses dput() to dump desc file of filebacked matrices. I got some time to do a little hack of reading big matrices nicely to java and was looking to some ways of smoothing the edges of parsing .desc file a little. I guess i am ok now with parsing .desc with some regex. One thing i am still wondering about is whether i really need to convert back and forth between liitle endian and big endian. Namely, java platform has little endian native byte order, and big matrix code writes stuff in big endian. It'd be nice if i could manipulate that by some #define somewhere in the makefile or something and make C++ write little endian without byte swapping every time i need to communicate with big matrix from java. Thanks


        [[alternative HTML version deleted]] mailing list Received on Mon 25 Jun 2012 - 14:23:12 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 25 Jun 2012 - 16:00:29 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive