Add/remove functions
by Artur T.
Hi all,
I am trying to remove a helper function (named e.g. H1) from an existing
package and replace it by another one (named H2) using the GUI. However,
after pressing 'ok' and saving the changed 'version', the old helper
function H1 is still listed and not replaced by the new one H2.
I observed this behavior already a while ago but for some reason forgot
about it. I am using the current git version on linux. At the moment I
would need to compile a completely new package and replace the old one.
Best,
Artur
8 years, 1 month
missing values in ternary assignment
by Riccardo (Jack) Lucchetti
Folks, I'm puzzled. Look here:
<hansl>
nulldata 6
set seed 123
series x = uniform()
x[2] = NA
series z = ok(x) && (x < 0.5) ? x : 0
print x z -o
</hansl>
this produces
<output>
x z
1 0.2103124 0.2103124
2
3 0.0003299 0.0003299
4 0.5931556 0.000
5 0.9869412 0.000
6 0.6499468 0.000
</output>
Which is IMO wrong. I can see the logic in stipulating that anything
involving NAs is NA but OTOH I would say that ( 0 && NA ) should be 0.
Note, moreover, that
<hansl>
series z = missing(x) || (x >= 0.5) ? 0 : x
</hansl>
would work the way I'd expect it to.
Am I missing something?
-------------------------------------------------------
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
-------------------------------------------------------
8 years, 1 month
GUI build failure with older gtk2 version
by Sven Schreiber
Hi,
I've had a report from a server administrator that building gretl 2016c
failed with respect to some GUI components, related to gtksourceview,
when using gtk2 (--enable-gtk2).
AFAI understand, only recent or even only the latest gtk2 version
provides the directory "completion-providers", but gretl or some
underlying component assumes it is present. The gtk2 (devel) version on
that system apparently is 2.8.2.
Here's a verbatim snippet of the error he forwarded me:
textbuf.c:51:79: error:
gtksourceview/completion-providers/words/gtksourcecompletionwords.h: No
such file or directory
The CLI usage of that gretl build hopefully isn't affected, but I
haven't tested that yet.
thanks,
sven
8 years, 1 month