using the table loader under zTu

12 views
Skip to first unread message

iwo

unread,
May 26, 2022, 5:20:29 AM5/26/22
to z-Tree unleashed
Dear friends of zTu,

I am trying to upload a table into z-Tree under zTu. My problem is that
z-Tree keeps crashing. My suspicion is that this has to do with the
exact formatting of the file I am trying to upload. When z-Tree was on a
Windows machine in our lab and I had R run on a linux server, I had to
format the output file as follows for z-Tree to be able to load the file:
write.table(theTable, "~/path/theTable.txt", quote=FALSE, eol="\n",
sep="\t", row.names=FALSE, fileEncoding="latin1")

Do I have to change anything this time, now that z-Tree is running on a
Debian system (R is running on the same system)? Note that R is
processing earlier output of the same z-Tree programme, so that I don't
want to fiddle around with the R output manually...

Any pointers would be very much appreciated!!

All the best,
irenaeus

Max R. P. Grossmann

unread,
May 26, 2022, 6:50:46 AM5/26/22
to iwo, z-Tree unleashed
Have you considered using

write.table(theTable, "~/path/theTable.txt", quote=FALSE, eol="\r\n", sep="\t", row.names=FALSE, fileEncoding="latin1")

instead? The carriage return is sometimes required under Windows (or Wine for that matter).
> --
> You received this message because you are subscribed to the Google Groups "z-Tree unleashed" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to z-tree-unleash...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/z-tree-unleashed/a928cc84-eae6-d9cf-3276-affd197d7625%40gmail.com.

iwo

unread,
May 26, 2022, 6:55:48 AM5/26/22
to z-Tree unleashed
Hi Max,

thanks a lot, that solved the problem! Works like a charm now...

All the best,
irenaeus

Am 26.05.22 um 12:50 schrieb Max R. P. Grossmann:
Reply all
Reply to author
Forward
0 new messages