Re: [Rd] dir.create does not return a value (PR#13686)

2009-05-02 Thread Josh Ulrich
Robert, The function always returns a value, but it doesn't print the value. Look at the source code for dir.create(), then read ?invisible. Best, Josh -- http://www.fosstrading.com On Sat, May 2, 2009 at 7:41 AM, Robert Hijmans wrote: > Thanks, I am not sure if this is desirable (a function

Re: [Rd] 'is.integer' (PR#13671)

2009-04-22 Thread Josh Ulrich
> typeof(1) [1] "double" 1 is obviously *not* an integer value. Best, Josh -- http://quantemplation.blogspot.com http://www.fosstrading.com On Wed, Apr 22, 2009 at 12:45 PM, wrote: > Full_Name: Mauricio > Version: 2.9.0 (2009-04-17) > OS:  i486-pc-linux-gnu > Submission from: (NULL) (193.205

Re: [Rd] surprising behaviour of names<-

2009-03-12 Thread Josh Ulrich
On Thu, Mar 12, 2009 at 3:24 PM, G. Jay Kerns wrote: > Wacek Kusnierczyk wrote: > > [snip] > >> as i explained a few months ago, i study r to find examples of bad >> design.  if anyone in the r core is interested in having the problems i >> report fixed, i'm happy to get involved in a discussion a

Re: [Rd] bug of *switch* function

2009-03-09 Thread Josh Ulrich
Because "<-" assigs a value. It does not name the alternatives. Again, please read ?switch. These two examples are the same: > organism <- 'foo' > (species <- switch(organism, human <- "HS", fly <- "DM", yeast <- "SC")) [1] "HS" > (species <- switch(organism, "HS", "DM", "SC")) [1] "HS" Josh --

Re: [Rd] Logical Error? (PR#13516)

2009-02-10 Thread Josh Ulrich
This is not a bug. Please do read the FAQ before posting and creating work for others. http://cran.r-project.org/doc/FAQ/R-FAQ.html#R-Bugs http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-doesn_0027t-R-think-these-numbers-are-equal_003f Joshua Ulrich -- http://quantemplation.blogspot.com On Tu

Re: [Rd] R CMD check not running examples under Windows

2008-12-09 Thread Josh Ulrich
This is a shot in the dark, but I noticed your PATH contains spaces in the paths to HTML Help and MiKTeX. The R Install & Admin manual explicitly says not to paths with spaces. If anything, it won't hurt to make this correction. HTH, Josh -- http://quantemplation.blogspot.com On Tue, Dec 9, 2