On 01/10/13 16:31, Riccardo (Jack) Lucchetti wrote:
On Tue, 1 Oct 2013, Ignacio Diaz-Emparanza wrote:
> I was preparing an introduction to hansl for my students and I was
> thinking of a simple way to introduce a few data.
Cut and paste from a spreadsheet is, in my opinion, the easiest way to
go; students find it very intuitive, too (unsurprsingly).
> I remembered that putting the variables in columns in a text file
> (with extension .dat or .txt), gretl open them quite easily. And I
> have experimented a little with it, but I found something weird (on
> ubuntu 12.04 with unity, and gretl from current CVS):
>
> 1) right-cliking on the file and selecting "open with" and then
> "gretl", the file is directly open. No problem.
> 2) from a terminal, if I use the command "gretlcli file.dat" or in
> interactive way "gretlcli" and "open file.dat" the file is also
> directly opened without problem
> 3) opening first the gretl GUI, if you have done 1) first and gretl
> remembers the file in the recently open files list you will have no
> problem,
> 4) but from the GUI, opening the file through '/File/Open data/User
> file' I obtain the error
>
> xmlParseFile failed on /home/ignacio/gretl/file.dat
>
> If I call the gui from a terminal, gretl is reporting this error on
> the terminal screen:
>
> /home/ignacio/gretl/file.dat:1: parser error : Start tag expected,
> '<' not found
I think that, since it's a text file, you should use the "Import" GUI
sub-menu instead.
Yes, but I wonder why it is so "complicated" when in the CLI only with
"open file.dat" all runs smoothly. It seems there is some asymetry
between the GUI and the CLI in opening files.
--
Firma Arista
*Ignacio Díaz-Emparanza*
Zuzendaria/Director
ignacio.diaz-emparanza(a)ehu.es <mailto:ignacio.diaz.emparanza@ehu.es>
94 6013732
*EKONOMIA APLIKATUA III SAILA (EKONOMETRIA ETA ESTATISTIKA)/
DEPARTAMENTO DE ECONOMÍA APLICADA III (ECONOMETRÍA Y ESTADÍSTICA)
UPV/EHU*
Avda. Lehendakari Aguirre, 83 | 48015 BILBAO
*T.: +34 946013740* | *F.: +34 946013754*
*www.ea3.ehu.es* <
http://www.ea3.ehu.es>
ERNE! Baliteke mezu honen zatiren bat edo mezu osoa legez babestuta
egotea. Mezuak badu bere hartzailea. Okerreko helbidera heldu bada
(helbidea gaizki idatzi, transmisioak huts egin) eman abisu igorleari,
korreo honi erantzunda. Kontuz! Mezua ez bada zuretzat, ez erabili, ez
zabaldu beste inori, ez kopiatu eta ez baliatu.
¡ATENCIÓN! Este mensaje contiene información privilegiada o confidencial
a la que sólo tiene derecho a acceder el destinatario. Si usted lo
recibe por error le agradeceríamos que no hiciera uso de la información
y que se pusiese en contacto con el remitente.
E-mail hau inprimatu baino lehen egiaztatu inprimatzeko beharra.
Antes de imprimir este e-mail piense bien si es necesario hacerlo.