posible issue with saving in latest snapshot
by Logan Kelly, Ph.D.
Hello,
This email is a little premature. So please forgive its vagueness, but The
current snapshot seems to be overwriting the wrong script file on saving in
the script editor. I just installed 7/22/2014 snapshot on win 7 64 bit. I
will do some more checking and get back to you, but I wanted to make you
aware of the potential issue.
Logan
10 years, 5 months
Workfile not marked as unsaved
by Sven Schreiber
Yet another post, about another bug I think:
1) open abdata
2) save as binary file .gdtb
3) create a new series, wave = pmean(w)
4) -> no asterisk after the file name
5) close dataset -> no prompt to save data
6) reopen, variable 'wave' not there
This is with the July-11 snapshot on Win7
cheers,
sven
10 years, 5 months
Running more than one version of gretl
by Allin Cottrell
This is a follow-up to Logan Kelly's question at
http://lists.wfu.edu/pipermail/gretl-devel/2014-July/005194.html . While
installing and running more than one version of gretl on a given machine
is not something we'd generally expect people to do, it's possible if you
take some care, and I thought it might be useful to spell out what's what.
I'll start with Linux because that's simpler. On Linux the paths that
gretl needs are recorded in the file .gretl2rc in the user's home
directory. If the settings in this file are right for one gretl
installation they will obviously be wrong for any other installation.
However, you have these options:
1) Get ~/.gretl2rc right for installation A, and copy it to (say)
~/.gretlrcA. Then do the same for installation B. Then depending on
which version you want to run, copy the associated file into place as
~/.gretl2rc before launching the program.
2) Alternatively, use the environment variable GRETL_CONFIG_FILE to
override the default of ~/.gretl2rc and pick up a version-specific config
file, as in
GRETL_CONFIG_FILE=/home/me/alt-gretlrc gretl
Now for Windows. I'll begin by describing the situation up till CVS a
couple of days ago.
When gretl is installed in the usual way an entry for "gretldir" is
written to the registry under HKEY_LOCAL_MACHINE, software, gretl. This
path denotes the directory to which gretl is installed, typically but not
necessarily "C:\Program Files\gretl". This registry entry is taken to be
canonical unless it is overridden by the environment variable GRETL_HOME.
This means that gretl will always take its path information from the
registry entry created by the most recent installation, unless you run
gretl with GRETL_HOME pointing to a different installation. Unfortunately,
running a program with an ad hoc environment-variable setting is not so
easy on Windows (google "set environment variable windows shortcut" to see
the fun and games).
In current CVS I've changed this. We now give precedence to a "gretldir"
value figured out from argv[0], the name of the program as called by the
OS. So, for example, if you create a desktop shortcut pointing to
"C:\Program files\gretl-cvs\gretl.exe" we should infer a gretldir setting
of "C:\Program files\gretl-cvs". (The registry entry is now just used as a
fallback.)
The specific case Logan mentioned has the last gretl release (1.9.90)
installed alongside a snapshot. To get this working you could first
install today's snapshot, then either use regedit to change the gretldir
registry entry to point back to the gretl 1.9.90 installation, or
re-install 1.9.90 to overwrite the registry. Then 1.9.90 will use the
registry entry, and the snapshot will (or should) ignore the registry and
find its own path.
Some testing of this would be nice!
Allin Cottrell
10 years, 5 months
GUI bug: list of regressors in panel estimation
by Sven Schreiber
Hi,
with a panel dataset and the standard panel model dialog I see the
pre-defined lists in the upper left part (in bold, very useful), but I
cannot transfer a list to be part of the regressors, no reaction when I
click the arrow button.
This is on Win7 with the July-11 snapshot.
thanks,
sven
10 years, 5 months
problems importing dataset
by Artur T.
Hello,
I tried to open a csv-dataset (same error with xls or txt version) which
definitely worked in tha past (half a year ago). Now I obtain the following
error using current csv on Win 7.
"parsing
C:\Users\artur\Desktop\2013_11_minsky_replication_file\DATASET.csv...
using delimiter ','
longest line: 249 characters
first field: 'OBS'
seems to be observation label
number of columns = 20
number of variables: 19
number of non-blank lines: 175
scanning for variable names...
line:
OBS,Y,YS_C1,YS_C2,YS_C3,YS_T1O,YS_T2O,YS_T3O,YS_T1F,YS_T2F,YS_T3F,F,Q,INVE,DSC,POIL,INF,W,R,TP
First char of varname (0x0) is bad
(first must be alphabetical)
"
Here is a small outtake from the file:
<DATA>
OBS,Y,YS_C1,YS_C2,YS_C3,YS_T1O,YS_T2O,YS_T3O,YS_T1F,YS_T2F,YS_T3F,F,Q,INVE,DSC,POIL,INF,W,R,TP
1967Q3,3.5608734313,3.6274227068,3.6437466505,3.6737951378,3.6173102901,3.6283939721,3.6288371042,3.5909027575,3.5978184899,3.6105819849,3.7456348046,4.1693894101,3.3705934777,2.7479845858,10.0615875684,0.0089312428,0.0103870088,0.0095406153,0
1967Q4,3.5684695865,3.6394340528,3.6553763242,3.6858064839,3.6270801339,3.6377489044,3.6379003502,3.6008854714,3.6076259974,3.6205258278,3.7962981218,4.1379741842,3.4037018308,2.7995873079,10.171241395,0.0106925043,0.0042048502,0.0102134985,1
.
.
.
2010Q2,4.7572302269,4.9820873654,4.957311849,5.0284597964,4.99992696,4.926724113,5.0896819961,4.9193646246,4.911772612,4.9336534265,4.9871425506,3.9278325215,4.4041940255,4.0399511659,241.2492342514,0.0035916972,0.0073640869,0.0004745493,171
2010Q3,4.7634215353,4.9866547222,4.9588592119,5.0330271532,4.9978589848,4.911743461,5.0922641652,4.9247657597,4.9162690937,4.9390232558,5.0068093463,4.0171093576,4.4268671637,4.046774731,240.4933663527,0.0035078912,0.0070461525,0.0004745493,172
2010Q4,4.7692267475,4.9916449857,4.9608143435,5.0380174167,4.9967539558,4.8972413279,5.0951500489,4.9302833498,4.9208810656,4.9445108531,5.0519279441,4.146863068,4.4550048468,4.0538062042,283.9659157098,0.0047732966,0.0072830636,0.0004745493,173
</DATA>
Best,
Artur
10 years, 5 months
Re: [Gretl-devel] Running CVS and Latest release on the same box
by Logan Kelly
Sent from my T-Mobile 4G LTE Device
-------- Original message --------
From: Allin Cottrell
Date:07/21/2014 4:49 AM (GMT-06:00)
To: Gretl development
Subject: Re: [Gretl-devel] Running CVS and Latest release on the same box
On Mon, 21 Jul 2014, Allin Cottrell wrote:
> On Mon, 21 Jul 2014, Logan Kelly wrote:
>
>> I am running Win 7 64 bit
>>
>> I would like to run both the latest stable release and the cvs on the same
>> machine. I have installed both in separate directories. My problem is that
>> gretl 1.9.90 is calling gnuplot from the gretl cvs installation, i.e.
>>
>> "C:\Program Files\gretl_cvs\wgnuplot.exe" "C:\Users\Logan
>> Kelly\AppData\Roaming\gretl\gpttmp.c09324": exit code 1
[...]
>
> Gretl is not specifically designed to support multiple installations, but it
> should be possible to "fake" it. Try deleting
>
> C:\Users\Logan Kelly\AppData\Roaming\gretl\.gretl2rc
>
> before starting gretl.
Ah, on second thoughts that probably won't help. But here's another idea:
set the environment variable GRETL_HOME to either
"C:\Program Files\gretl_cvs" or
"C:\Program Files\gretl"
hen starting the program.
Thanks Allin,
I tried that, but gretl still runns gnuplot from wich ever install was done last. I haven't tried your first solution yet. Just to check, the GRETL_HOME can be changed via the GUI through Tools - > Preferences?
I could just use the USB version for one of the installations?
Logan
10 years, 5 months
Running CVS and Latest release on the same box
by Logan Kelly
Hello,
I am not sure which list this should go to, so apologies if I got the wrong one.
I am running Win 7 64 bit
I would like to run both the latest stable release and the cvs on the same machine. I have installed both in separate directories. My problem is that gretl 1.9.90 is calling gnuplot from the gretl cvs installation, i.e.
"C:\Program Files\gretl_cvs\wgnuplot.exe" "C:\Users\Logan Kelly\AppData\Roaming\gretl\gpttmp.c09324": exit code 1
Instead of
"C:\Program Files\gretl\wgnuplot.exe" "C:\Users\Logan Kelly\AppData\Roaming\gretl\gpttmp.c09324": exit code 1
Is there a way to tell gretl where gnuplot is? By the way the error from gnuplot is what has prompted me to do this, but that is another post for when I have a chance to investigate.
Logan
10 years, 5 months
Re: [Gretl-devel] Running CVS and Latest release on the same box
by Logan Kelly
Thanks I will try that.
I wonder if when the next stable release ships if there could be a check if gnuplot 5 fails, then try 4.7? I'm not sure if shipping with both versions of gnuplot would be practical? Or even possible? Anyway, I ran into this when I needed to re-run some old code that I could have just updated.
Cheers,
Logan
-------- Original message --------
From: Allin Cottrell
Date:07/21/2014 3:42 AM (GMT-06:00)
To: Gretl development
Subject: Re: [Gretl-devel] Running CVS and Latest release on the same box
On Mon, 21 Jul 2014, Logan Kelly wrote:
> I am running Win 7 64 bit
>
> I would like to run both the latest stable release and the cvs on the
> same machine. I have installed both in separate directories. My problem
> is that gretl 1.9.90 is calling gnuplot from the gretl cvs installation,
> i.e.
>
> "C:\Program Files\gretl_cvs\wgnuplot.exe" "C:\Users\Logan
> Kelly\AppData\Roaming\gretl\gpttmp.c09324": exit code 1
>
> Instead of
>
> "C:\Program Files\gretl\wgnuplot.exe" "C:\Users\Logan
> Kelly\AppData\Roaming\gretl\gpttmp.c09324": exit code 1
>
> Is there a way to tell gretl where gnuplot is? By the way the error from
> gnuplot is what has prompted me to do this, but that is another post for
> when I have a chance to investigate.
First, the error from gnuplot: this is because the gnuplot version differs
between the last release (4.7) and current CVS (5.0 rc) and there's a
backward incompatible change in gnuplot from 4 to 5: gretl 1.9.90 is
writing version-4 compatible gnuplot files but CVS gretl writes version-5
compatible files.
Gretl is not specifically designed to support multiple installations, but
it should be possible to "fake" it. Try deleting
C:\Users\Logan Kelly\AppData\Roaming\gretl\.gretl2rc
before starting gretl.
Allin Cottrell
_______________________________________________
Gretl-devel mailing list
Gretl-devel(a)lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-devel
10 years, 5 months
Comprehensive quality control for function packages
by Marcin Błażejowski
Hi Dear Developers,
we're planning to start (almost) permanent comprehensive quality control
for function packages uploaded to server. The very minimum standard all
packages should meet is:
1. Possibility to run...
2. Comprehensive help with good explanation of functionality implemented
in package. The very nice thing would be a link to an article/book/etc
with examples and so on.
3. Sample script based on dataset bundled with gretl installation. If it
is not possible it would be very nice to put a link to Internet source
for relevant data or piece of code for generation an artificial data.
4. Benchmark results.
5. Email(s) to author(s).
What will we do at checks (in general):
1. If certain package runs on current gretl version.
2. If package has help and script.
3. If it is possible to replicate script submitted with package and get
benchmark results.
4. If we know email(s) to author(s).
We plan to start our work at August.
Best Regards,
Polish Team
--
Marcin Błażejowski
GG: 203127
10 years, 5 months
Current date function
by Logan Kelly, Ph.D.
Hello,
Apologies if this question is too rudimentary, but I need to get the current
data from the os. I cannot find a hansl comand or function to do this (maybe
I am just being thick). The following works in Windows 7, but I do not have
a linux or mac box to develop something other platforms. Would this be a
handy thing to add? Maybe to the system bundle?
<hansl>
function string today()
string cdate = $(Echo %date%)
cdate = strstrip(strsub(cdate,"/"," "))
cdate =
strsplit(cdate,4)~"-"~strsplit(cdate,2)~"-"~strsplit(cdate,3)
return cdate
end function
</hansl>
Output on Win 7 64 bit:
gretl version 1.9.90
Current session: 2014-07-17 12:03
? function string today()
> string cdate = $(Echo %date%)
> cdate = strstrip(strsub(cdate,"/"," "))
> cdate = strsplit(cdate,4)~"-"~strsplit(cdate,2)~"-"~strsplit(cdate,3)
> return cdate
> end function
? current_date = today()
Replaced string current_date
? print current_date
2014-07-17
10 years, 5 months