Dear All,
During the recent times
there were several threads 
on importing RData files into gretl

The attachment contains a function
to open RData files in gretl

In contrast to the native foreign
importers it requires R installed
(not a strong requirement, at least
on linux, since R is included into
dependencies list for building gretl)

creates somefile.csv from somefile.RData
outputs the full path to somefile.csv as a string
require installing 'csv' R package beforehand
file_name = R_to_csv(/home/path/somefile.RData") #
file_name = R_to_csv("Disk:/path/somefile.RData") # Windows
open @file_name
you can run 'eval file_name' before running 'open @file_name'

It  is OS-dependent Tested on Linux and Windows
Not tested on Mac

Hope this will be useful for some people

Oleh














Attachment: gretlR.tar.gz
Description: GNU Zip compressed data

Reply via email to