Re: [Rd] Correction in help(factanal)

2014-11-14 Thread peter dalgaard
Right. (Well, I suppose that you could transpose x and Lambda, but then it would have to be x = f Lambda + epsilon and all the dimensions would be wrong.) I'll fix this in R-devel. -pd > On 14 Nov 2014, at 00:13 , John Maindonald wrote: > > <<< > Thus factor analysis is in essence a model fo

Re: [Rd] Correction in help(factanal)

2014-11-14 Thread peter dalgaard
Done. Actually, I just dropped the row-vector bit. Doesn't seem necessary and the "column vectors stored as matrix rows" issue is (a) well-known and (b) generic to multivariate methods. > On 14 Nov 2014, at 10:09 , peter dalgaard wrote: > > Right. (Well, I suppose that you could transpose x a

[Rd] Changing style for the Sweave vignettes

2014-11-14 Thread Gordon K Smyth
Date: Thu, 13 Nov 2014 12:09:47 +0100 From: January Weiner To: r-devel Subject: [Rd] Changing style for the Sweave vignettes As a user, I am always annoyed beyond measure that Sweave vignettes precede the code by a command line prompt. It makes running examples by simple copying of the commands

[Rd] Error "promise already under evaluation ..." with function(x, dim=dim(x))

2014-11-14 Thread Henrik Bengtsson
I've meant to ask the following for several years now. I understand why: > foo <- function(x, dim=dim) { dim } > foo(1) Error in foo(1) : promise already under evaluation: recursive default argument reference or earlier problems? gives an error, but why wouldn't/couldn't the following work? >

[Rd] Code tools for identifying which package A functions package B use?

2014-11-14 Thread Henrik Bengtsson
Hi, I'd like to list all package PkgA functions that another package PkgB use via Depends or Imports (ignoring Suggests for simplicity). As long as PkgB uses importFrom("PkgA", ...) it's just a matter of parsing the NAMESPACE file or inspecting asNamespace("PkgB")$.__NAMESPACE__.$imports. Howeve

Re: [Rd] Code tools for identifying which package A functions package B use?

2014-11-14 Thread Kasper Daniel Hansen
The best thing I have found is codetoolsBioC in the Bioconductor subversion repository. Best, Kasper On Fri, Nov 14, 2014 at 9:57 PM, Henrik Bengtsson wrote: > Hi, > > I'd like to list all package PkgA functions that another package PkgB > use via Depends or Imports (ignoring Suggests for simpl

Re: [Rd] Code tools for identifying which package A functions package B use?

2014-11-14 Thread Henrik Bengtsson
Thanks Kasper, that seems to do it: $ url=https://hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/codetoolsBioC $ svn checkout --username readonly --password readonly $url $ R CMD build codetoolsBioC $ R CMD INSTALL codetoolsBioC $ R > library("codetoolsBioC") > deps <- findExternalDeps("MASS