On Wed, 29 Jun 2016, Sven Schreiber wrote:
Hi,
there is a trend towards the use of bundles in hansl. And when it
comes to using them for functions or function packages it is nice
to use them in hansl, that is in script format.
However, for GUI-gretl bundles are currently not so nice. I have
found no way to create them somehow from the menus.
[...]
I think I know what you mean.
The solution I adopted for most of my own packages is to have a certain
number of functions which _use_ the bundle, but TWO different functions
for _creating_ the bundle itself. One is preferably rather compact and
intended for usage in a script (example: SVAR_setup(), or gig_setup()).
Another one is for GUI usage (example: GUI_gig()), in which you populate
the GUI element with as many object as you can reasonably cram on the
screen. These are all arguments to a function that sets the bundle up, and
presumably also do something substantial, like estimation etc.
thanks and sorry for the long post,
Not at all, this kind of debate is essential for the function package
ecosystem to grow healthy.
-------------------------------------------------------
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
-------------------------------------------------------