But not for me, irritatingly (mine is up to date, and I can open .xlsx
files through LibreOffice):
gretl version 2020b-git
Current session: 2020-03-22 09:38
? string site = "https://www.ecdc.europa.eu/sites/default/files/documents/"
Generated string site
? string fname =
"COVID-19-geographic-distribution-worldwide-2020-03-21.xlsx"
Generated string fname
? string URL = site ~ fname
Generated string URL
? open @URL --quiet
gretl_unzip:
/home/clive/.gretl/COVID-19-geographic-distribution-worldwide-2020-03-21.xlsx:
zip error: Zip file structure invalid
Error executing script: halting
open @URL --quiet
In the end, I saved and renamed the file manually and opened it through
-gretl- in the usual way. But it would be nice if the other way worked.
C
On Sat, 21 Mar 2020 at 23:35, Riccardo (Jack) Lucchetti <
r.lucchetti(a)univpm.it> wrote:
> On Sun, 22 Mar 2020, F.R.Costa wrote:
>
> > What's the best way to import this into Gretl?
>
> I guess this should work ok:
>
> <hansl>
> string site = "https://www.ecdc.europa.eu/sites/default/files/documents/"
> string fname =
> "COVID-19-geographic-disbtribution-worldwide-2020-03-21.xlsx"
> string URL = site ~ fname
open @URL --quiet
> setobs Countriesandterritories DateRep
--panel-vars
> </hansl>
>
> -------------------------------------------------------
> Riccardo (Jack) Lucchetti
> Dipartimento di Scienze Economiche e Sociali (DiSES)
>
> Università Politecnica delle Marche
> (formerly known as Università di Ancona)
>
> r.lucchetti(a)univpm.it
>
http://www2.econ.univpm.it/servizi/hpp/lucchetti
>
>
-------------------------------------------------------_______________________________________________
> Gretl-users mailing list -- gretl-users(a)gretlml.univpm.it
> To unsubscribe send an email to gretl-users-leave(a)gretlml.univpm.it
> Website:
>
https://gretlml.univpm.it/postorius/lists/gretl-users.gretlml.univpm.it/
>
--
Clive Nicholas
"My colleagues in the social sciences talk a great deal about methodology.
I prefer to call it style." -- Freeman J. Dyson