[Rd] Bug report in foreign library (PR#13425)
nhorton at email.smith.edu
nhorton at email.smith.edu
Sat Jan 3 21:15:14 CET 2009
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
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
<<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
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