Re: [Rd] R CMD INSTALL writes to stderr

2011-10-10 Thread Mark Cowley
Thanks for the tip Simon, i've just written a simplified version of install.packages -- install.package.file which will silently R CMD INSTALL a package, assuming you've already downloaded it & if there's an installation problem, the R CMD INSTALL output is spat to stderr. Code available if anyo

Re: [Rd] R CMD INSTALL writes to stderr

2011-10-10 Thread Simon Urbanek
On Oct 10, 2011, at 8:48 PM, Mark Cowley wrote: > Dear list, > (this is a follow up from a previous query) > > Why does R CMD INSTALL write most of its messages to stderr? If it wrote to > stdout, then we could capture its output within an R session when calling > sink("stdout.txt", type="outp

[Rd] R CMD INSTALL writes to stderr

2011-10-10 Thread Mark Cowley
Dear list, (this is a follow up from a previous query) Why does R CMD INSTALL write most of its messages to stderr? If it wrote to stdout, then we could capture its output within an R session when calling sink("stdout.txt", type="output") install.packages("MASS", type="source") sink() As it sta

[Rd] "Speeding tickets for R and Stata"

2011-10-10 Thread oliver
Hello, an article on that topic: http://ekonometrics.blogspot.com/2011/04/speeding-tickets-for-r-and-stata.html Ciao, Oliver __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] "What Calls What" diagram. Flow Chart?

2011-10-10 Thread William Dunlap
Have you tried using trace()? E.g., > library(lavaan) > trace(lavaan) > HS.model <- ' visual =~ x1 + x2 + x3 +textual =~ x4 + x5 + x6 +speed =~ x7 + x8 + x9 ' > > fit <- cfa(HS.model, data=HolzingerSwineford1939) trace: lavaan(

Re: [Rd] "What Calls What" diagram. Flow Chart?

2011-10-10 Thread Paul Johnson
On Sun, Oct 9, 2011 at 5:29 PM, wrote: > Hi Paul > > Have you tried > > mvbutils::foodweb( where=asNamespace( 'lavaan')) > > (assuming lavaan has a namespace, otherwise where='package:lavaan')? > > Sounds like it's what you're after-- > > Mark > Thanks, Mark. The foodweb graph for lavaan is a bit

Re: [Rd] help text for which.min

2011-10-10 Thread Henrik Pärn
Of course the reasoning below applies also to an example with which.max, so yet another suggestion for the x vector: x <- c(1, 2, 0, 0, 3, 3, 1, 2) > which.min(x) [1] 3 > which(x == min(x)) [1] 3 4 > which.max(x) [1] 5 > which(x == max(x)) [1] 5 6 Cheers, Henrik On 08.10.2011 14:54, Henri

[Rd] help text for which.min

2011-10-10 Thread Henrik Pärn
Dear R developers, I find the which.min function very handy. However, maybe you could consider a tiny addition to the example data in the the help text. By adding another zero to the vector x... x <- c(1:4, 0, 0:5,11) ...the example would more explicitly show that which.min actually 'giv[es]