Don't know if this is helpful. The "export from R to gretl" command appears to be missing.

Executing

<hansl>

nulldata 100


foreign language=R
a <- 1
am <- matrix (c(a), nrow = 1,ncol = 1)
gretl.export(am)
end foreign

ac = mread("am.mat", 1)

</hansl>

gives in script output

<<

? foreign language=R
? a <- 1
? am <- matrix (c(a), nrow = 1,ncol = 1)
? gretl.export(am)
? end foreign
wrote matrix C:/Users/alpapadopoulos/AppData/Roaming/gretl/am.mat
? ac = mread("am.mat", 1)
Generated scalar ac = 1

>>

and one can find the scalar "ac" in the "scalars" icon in "icon view".



Alecos Papadopoulos PhD
Athens University of Economics and Business
web: alecospapadopoulos.wordpress.com/
skype:alecos.papadopoulos
On 9/7/2020 18:08, Riccardo (Jack) Lucchetti wrote:

Dear all,

a friend is having trouble with the "foreign" command under windows for running R. In attachments, a screenshot with the error he's getting. I tried to help, but due to my limited command Windows, I failed miserably.

Can anyone help?


-------------------------------------------------------
  Riccardo (Jack) Lucchetti
  Dipartimento di Scienze Economiche e Sociali (DiSES)

  Universitą Politecnica delle Marche
  (formerly known as Universitą di Ancona)

  r.lucchetti@univpm.it
  http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------

_______________________________________________
Gretl-users mailing list -- gretl-users@gretlml.univpm.it
To unsubscribe send an email to gretl-users-leave@gretlml.univpm.it
Website: https://gretlml.univpm.it/postorius/lists/gretl-users.gretlml.univpm.it/