I've attached data.restore4.txt, containing the function
data.restore4(), which has the same argument list as
foreign::data.restore() and is mean to be called by the latter if the
first line of the file is "## Dump S Version 4 Dump". It can read
version 4 of the 'S data dump' format, which for which S+ uses the
file extension ".sdd". It stores the objects it reads in the
environment specified by the 'env' argument/.
I think it works pretty well; please report any issues to me.
Bill Dunlap
TIBCO Software
wdunlap
tibco.com