[R] Problem with foreign package

Kevin E. Thorpe kevin.thorpe at utoronto.ca
Mon Feb 2 14:46:31 CET 2009

I tried to use write.foreign() to export to SAS this morning and got an 

When I looked at the code for writeForeignSAS() I saw this line:

dfn < -df

which I think should be

dfn <- df

So, I tried to run update.packages() to see if there was an updated 
version and got the following result.

 > update.packages(c("foreign"))
Warning message:
In list.files(lib) : list.files: 'foreign' is not a readable directory

I ran the above command as root.

Is this because the foreign package is a core package and not a CRAN one?

My sessionInfo() is

R version 2.8.0 (2008-10-20)


attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

loaded via a namespace (and not attached):
[1] tools_2.8.0

and my version of foreign is 0.8-30

Kevin E. Thorpe
Biostatistician/Trialist, Knowledge Translation Program
Assistant Professor, Dalla Lana School of Public Health
University of Toronto
email: kevin.thorpe at utoronto.ca  Tel: 416.864.5776  Fax: 416.864.6057

More information about the R-help mailing list