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

2009-01-04 Thread Prof Brian Ripley

On Sat, 3 Jan 2009, Nicholas Horton wrote:


Peter,

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


Yes 0.8-30 is an update on the Mac OS X distribution.  It was deliberately 
put out after 2.8.1 as we knew that some of the options were little tested 
(we neither have access to some of the 'foreign' programs nor test 
examples for many of the features).


In this case you could downgrade by re-installing the binary, or fix the 
sources and re-install.  The SVN archive has been updated, but I do not 
intend to put out a new release until I get some responses from those who 
reported bugs in 0-8-29 and have been asked to test if the bug is fixed.




All the best,

Nick


On 1/3/09 6:46 PM, "Peter Dalgaard"  wrote:


nhor...@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...




<>



--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@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

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel



--
Brian D. Ripley,  rip...@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, UKFax:  +44 1865 272595

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


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

2009-01-04 Thread Nicholas Horton
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"  wrote:

> nhor...@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...
> 
> 
>> 
>> <>
>> 
>> 
>> 
>> --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@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

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] proposed patch to Uniform.Rd

2009-01-04 Thread Ben Bolker

  In the wake of discussions about documentation of R's
random number generation (and whether there should be links
to .Random.seed in other places), here is a proposed patch
to Uniform.Rd from 2.8.1.  (Watch out for line breaks.)
[R-core may choose not to accept this, but at least it's
easy if they want it.]

  cheers
Ben Bolker


*** Uniform.Rd.orig 2009-01-04 14:10:47.0 -0500
--- Uniform.Rd  2009-01-04 14:12:26.0 -0500
***
*** 49,54 
--- 49,58 
\code{max = min} or \code{max-min} is small compared to \code{min},
and in particular not for the default arguments.
  }
+ \note{The characteristics of output from pseudo-random
+ number generators (such as precision and periodicity) vary widely.  See
+ \code{\link{.Random.seed}} for more information on R's random number
+ generation algorithms.}
  \references{
Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988)
\emph{The New S Language}.

-- 
Ben Bolker
Associate professor, Biology Dep't, Univ. of Florida
bol...@ufl.edu / www.zoology.ufl.edu/bolker
GPG key: www.zoology.ufl.edu/bolker/benbolker-publickey.asc



signature.asc
Description: OpenPGP digital signature
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] R-intro

2009-01-04 Thread Jan de Leeuw

Currently the pdf/dvi versions of R-intro do not build, the
tex compilation hangs on page 21 (standard TeXLive, OS X).

===
 Jan de Leeuw, 11667 Steinhoff Rd, Frazier Park, CA 93225
 home 661-245-1725 mobile 661-231-5416 work 310-825-9550
 .mac: jdeleeuw +++  aim: deleeuwjan +++ skype: j_deleeuw
===
 I am I because my little dog knows me.
 Gertrude Stein

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] R-intro

2009-01-04 Thread Prof Brian Ripley

Jan,

I am not seeing this (on OS X or anywhere else).  Can you plese give more 
detais?


On Mac OS I am using MacTeX, on Windows MiKTeX and on Linux TeXLixe 2007.

On Sun, 4 Jan 2009, Jan de Leeuw wrote:


Currently the pdf/dvi versions of R-intro do not build, the
tex compilation hangs on page 21 (standard TeXLive, OS X).

===
Jan de Leeuw, 11667 Steinhoff Rd, Frazier Park, CA 93225
home 661-245-1725 mobile 661-231-5416 work 310-825-9550
.mac: jdeleeuw +++  aim: deleeuwjan +++ skype: j_deleeuw
===
I am I because my little dog knows me.
 Gertrude Stein

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel



--
Brian D. Ripley,  rip...@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, UKFax:  +44 1865 272595

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] R-intro

2009-01-04 Thread Jan de Leeuw

Brian,

See below. It hangs after typesetting p 21, so I gave a ^C. It's the
current R-devel from svn, OS X 10.5.6, and the current TeXLive-2008
from svn (i.e. from tlmgr).





-- Jan



On Jan 4, 2009, at 14:11 , Prof Brian Ripley wrote:


Jan,

I am not seeing this (on OS X or anywhere else).  Can you plese give  
more detais?


On Mac OS I am using MacTeX, on Windows MiKTeX and on Linux TeXLixe  
2007.


On Sun, 4 Jan 2009, Jan de Leeuw wrote:


Currently the pdf/dvi versions of R-intro do not build, the
tex compilation hangs on page 21 (standard TeXLive, OS X).

===
   Jan de Leeuw, 11667 Steinhoff Rd, Frazier Park, CA 93225
   home 661-245-1725 mobile 661-231-5416 work 310-825-9550
   .mac: jdeleeuw +++  aim: deleeuwjan +++ skype: j_deleeuw
===
   I am I because my little dog knows me.
 Gertrude Stein

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel



--
Brian D. Ripley,  rip...@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, UKFax:  +44 1865 272595



===
Jan de Leeuw; Distinguished Professor and Chair, UCLA Department of  
Statistics;

Director: UCLA Center for Environmental Statistics (CES);
Editor: Journal of Multivariate Analysis, Journal of Statistical  
Software;

US mail: 8125 Math Sciences Bldg, Box 951554, Los Angeles, CA 90095-1554
phone (310)-825-9550;  fax (310)-206-5658;  email: dele...@stat.ucla.edu
.mac: jdeleeuw ++  aim: deleeuwjan ++ skype: j_deleeuw
homepages: http://gifi.stat.ucla.edu ++ http://www.cuddyvalley.org
  
-

  No matter where you go, there you are. --- Buckaroo Banzai
   http://gifi.stat.ucla.edu/sounds/nomatter.au
  
-






__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] R-intro

2009-01-04 Thread Prof Brian Ripley

On Sun, 4 Jan 2009, Jan de Leeuw wrote:


Brian,

See below. It hangs after typesetting p 21, so I gave a ^C. It's the
current R-devel from svn, OS X 10.5.6, and the current TeXLive-2008
from svn (i.e. from tlmgr).


The problem seems to be the version of texinfo.tex, which does not seem to 
be the one from TexLive 2008.  My MacTeX has


tystie% kpsewhich texinfo.tex
/usr/local/texlive/2008/texmf-dist/tex/texinfo/texinfo.tex
\def\texinfoversion{2008-04-18.10}

and your log has

(./R-intro.texi 
(/usr/local/texlive/2008/texmf-dist/tex/texinfo/texinfo.tex

Loading texinfo [version 2009-01-01.14]:

Note the date ... not in 2008.  This would not be the first time that a 
broken texinfo.tex has been released, but I don't see a texinfo release 
since 4.13a on 2008-09-22.  Please revert to a released version.


Brian

--
Brian D. Ripley,  rip...@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, UKFax:  +44 1865 272595

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] R-intro

2009-01-04 Thread Jan de Leeuw

Thanks. Works with a previous version of texinfo.tex from Time Machine.

If you run tlmgr you'll see that CTAN now has the (broken) 2009-01-01
version, released by the FSF in 2009.

-- J.

On Jan 4, 2009, at 15:02 , Prof Brian Ripley wrote:


On Sun, 4 Jan 2009, Jan de Leeuw wrote:


Brian,

See below. It hangs after typesetting p 21, so I gave a ^C. It's the
current R-devel from svn, OS X 10.5.6, and the current TeXLive-2008
from svn (i.e. from tlmgr).


The problem seems to be the version of texinfo.tex, which does not  
seem to be the one from TexLive 2008.  My MacTeX has


tystie% kpsewhich texinfo.tex
/usr/local/texlive/2008/texmf-dist/tex/texinfo/texinfo.tex
\def\texinfoversion{2008-04-18.10}

and your log has

(./R-intro.texi (/usr/local/texlive/2008/texmf-dist/tex/texinfo/ 
texinfo.tex

Loading texinfo [version 2009-01-01.14]:

Note the date ... not in 2008.  This would not be the first time  
that a broken texinfo.tex has been released, but I don't see a  
texinfo release since 4.13a on 2008-09-22.  Please revert to a  
released version.


Brian

--
Brian D. Ripley,  rip...@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, UKFax:  +44 1865 272595



===
Jan de Leeuw; Distinguished Professor and Chair, UCLA Department of  
Statistics;

Director: UCLA Center for Environmental Statistics (CES);
Editor: Journal of Multivariate Analysis, Journal of Statistical  
Software;

US mail: 8125 Math Sciences Bldg, Box 951554, Los Angeles, CA 90095-1554
phone (310)-825-9550;  fax (310)-206-5658;  email: dele...@stat.ucla.edu
.mac: jdeleeuw ++  aim: deleeuwjan ++ skype: j_deleeuw
homepages: http://gifi.stat.ucla.edu ++ http://www.cuddyvalley.org
  
-

  No matter where you go, there you are. --- Buckaroo Banzai
   http://gifi.stat.ucla.edu/sounds/nomatter.au

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel