Hi Allin,
I realise that I didn’t give all the information. I attach a zipped minimal version, in
which the source line has been replaced by the explicit R function which I use to retrieve
the data. You will see that the initial dataset contains three string series in which the
first variable SLIST is a list of variables to be downloaded from the FRED database. I
have reduced this to three, and taken out other irrelevant material in the script. The
datafile from which the script reads the variables is in the directory test/data.
As I mentioned this script works perfectly on a Mac with Gretl 2025b but fails in Ubuntu
24.04 with Gretl 2023c.
I hope this give the necessary information.
Many thanks for any suggestions,
Roland
On 13 Oct 2025, at 13:58, Cottrell, Allin <cottrell(a)wfu.edu>
wrote:
On Mon, Oct 13, 2025 at 4:42 AM Roland Clarke <rolandclarke97(a)icloud.com> wrote:
>
> Dear Colleagues,
>
> I am having problems running a simple Gretl script to retrieve variables
> from the FRED database. The script works perfectly when I run it on a
> Mac, but when I run it on my Ubuntu 24.04 it fails on the line:
>
> foreign language=R --send-data
>
> under Ubuntu it generates the following output:
>
> gretl version 2023c
> Current session: 2025-10-13 10:15
>
> ? foreign language=R --send-data
> ? print("before loading libraries)
> ? library(fredr)
> ? print("loaded fredr)
> ? library(eFRED)
> ? print("loaded Fred libraries")
> ? source("functions/data_management.R")
> ? print("loaded functions")
> ? Fd <- Fred_data(gretldata$SLIST)
> ? Fdata <- Fd[[1]]
> ? write.csv(Fdata, "temp/FRED_full_from_R.csv", row.names = FALSE)
> ? end foreign
> /home/roland/.gretl/R.msg: No such file or directory
Roland, can you tell us, where is "functions/data_management.R" coming
from, and what's the content of gretldata$SLIST? As things stand we're
not in a position to replicate this issue. I'd also note, there are
some unclosed quotes above that would presumably halt execution in R,
but maybe that's just a matter of transcription.
Allin Cottrell
_______________________________________________
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/