[Rd] Bug report in foreign library (PR#13425)

Nicholas Horton nhorton at email.smith.edu
Sun Jan 4 01:44:59 CET 2009


Peter,

I run "update.packages()" regularly and may well have gotten this as a
result. Alas, I don't log the results very carefully.

All the best,

Nick


On 1/3/09 6:46 PM, "Peter Dalgaard" <p.dalgaard at biostat.ku.dk> wrote:

> nhorton at email.smith.edu wrote:
>> here appears to be a bug in the foreign library.  The following code used to
>> work, but now generates an error when 'package="SAS"' is specified:
>> 
>> ds <- read.csv("http://www.math.smith.edu/sasr/datasets/help.csv")
>> # running foreign package version 0.8-30
> 
> That's one version ahead of the package in the 2.8.1 source tarball. Did
> you upgrade or is the darwin binary out of sync?
> 
>> library(foreign)
>> # this works fine
>> write.foreign(ds, "foo", "bar", package="Stata")
>> # this yields an error
>> write.foreign(ds, "foo", "bar", package="SAS")
>> # Error in writeForeignSAS(df = list(id = c(1L, 2L, 3L, 4L, 5L, 6L, 7L,  :
>> #  object "dfn" not found
>> 
>> 
>> 
>> There appears to be a space between < and - in foreign:::writeForeignSAS on
>> or around line 15:
>> 
>> dfn < - df
>> 
>>         should be
>> 
>> dfn <- df
> 
> Yep. That is in 0.8-30 but not in -29...
> 
> 
>> 
>> <<insert bug report here>>
>> 
>> 
>> 
>> --please do not edit the information below--
>> 
>> Version:
>>  platform = i386-apple-darwin8.11.1
>>  arch = i386
>>  os = darwin8.11.1
>>  system = i386, darwin8.11.1
>>  status = 
>>  major = 2
>>  minor = 8.1
>>  year = 2008
>>  month = 12
>>  day = 22
>>  svn rev = 47281
>>  language = R
>>  version.string = R version 2.8.1 (2008-12-22)
>> 
>> Locale:
>> en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8
>> 
>> Search Path:
>>  .GlobalEnv, package:foreign, package:stats, package:graphics,
>> package:grDevices, package:utils, package:datasets, package:methods,
>> Autoloads, package:base
>> 
>> ______________________________________________
>> R-devel at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel
> 

Nicholas Horton 
Department of Mathematics and Statistics, Smith College
Clark Science Center, Northampton, MA 01063-0001
http://www.math.smith.edu/~nhorton



More information about the R-devel mailing list