From ripley at stats.ox.ac.uk  Tue Nov 21 18:17:50 2006
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Tue, 21 Nov 2006 17:17:50 +0000 (GMT)
Subject: [Rd] Documentation error for data.restore() in package
 "foreign" (was Re: [R] Import problem with S-Plus 7.0 dataset)
In-Reply-To: <45632FE2.9010706@acm.org>
References: <20061103160729.BMD73634@po-d.temple.edu>
	<45632FE2.9010706@acm.org>
Message-ID: <Pine.LNX.4.64.0611211713410.25689@gannet.stats.ox.ac.uk>

On Tue, 21 Nov 2006, Tony Plate wrote:

> BTW, the help file for data.restore says:

Not in the SVN version at

https://svn.r-project.org/R-packages/trunk/foreign/man/read.S.Rd

BTW, there is no such function as 'data.store' (sic).


> Value: an R version of the S3 object.
>
> It looks like this may need correction (when I try this function out, it
> returns the file name, not the object restored from the file.)

Rather, it returns the object names, as documented at that URL and in S.

>
> I tried this in R 2.4.0:
>
> > sessionInfo()
> R version 2.4.0 (2006-10-03)
> i386-pc-mingw32
>
> locale:
> LC_COLLATE=English_United States.1252;LC_CTYPE=English_United
> States.1252;LC_MONETARY=English_United
> States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252
>
> attached base packages:
> [1] "methods"   "stats"     "graphics"  "grDevices" "utils"     "datasets"
> [7] "base"
>
> other attached packages:
>  foreign     ncdf
> "0.8-17"    "1.6"
> >
>
> -- Tony Plate
>
> (redirected from an old thread on R-help -- I was waiting until I had R
> 2.4.0 installed so that I could verify that this was still a problem.
> Apologies if it has been fixed since then)
>
> Richard M. Heiberger wrote:
>> It looks like it works.  The result you printed is
>> the name of the file that data.store read.  The name of the
>> variable is the same as the name you called it in S-Plus.
>>
>> type
>>    data[1:5,]
>> and you should see your data.frame.
>>
>> ______________________________________________
>> R-help at stat.math.ethz.ch mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



[Rd] Documentation error for data.restore() in package "foreign" (was Re: [R] Import problem with S-Plus 7.0 dataset)
Prof Brian Ripley