write_data with separator_flag = space ?



Ted, the problem is that there is a variable in the stringproc package
(which you must have loaded, I guess) named "space".
Try write_data(<whatever>, 'space) (i.e. quote the variable).

HTH, Robert Dodier

On 5/27/11, Edwin Woollett <woollett at charter.net> wrote:
> According to the write_data sect. of the
> help manual:
>
>      "The recognized values of separator_flag
>       are comma, pipe, semicolon, space, and tab.
>       If separator_flag is not specified, the file
>       is assumed space-delimited."
>
> I can get comma to work, but not space.
> -------------------------------------------------
> Maxima 5.24.0 http://maxima.sourceforge.net
> using Lisp GNU Common Lisp (GCL) GCL 2.6.8 (a.k.a. GCL)
> Distributed under the GNU Public License. See the file COPYING.
> Dedicated to the memory of William Schelter.
> The function bug_report() provides bug reporting information.
>                                   2011-05-27
>
>
> (%i1) dataL : [[0,2],[1,3],[2,4]]$
>
> (%i2) write_data (dataL,"tmp4.out")$
> (%i3) printfile ("tmp4.out")$
> 0 2
> 1 3
> 2 4
>
> (%i4) write_data (dataL,"tmp4.out",comma)$
> (%i5) printfile ("tmp4.out")$
> 0,2
> 1,3
> 2,4
>
> (%i6) write_data(dataL,"tmp4.out",space)$
> numericalio: separator flag " " not recognized; assume ``space''.
>
> -----------------------------------------------
> Ted Woollett
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>