Re: [Rd] list.files(recursive=T) does not return directory names

2005-11-25 Thread Henrik Bengtsson
Hi, the R.utils package has a function listDirectory() that returns the directory names too. (I've made some changes to the function recently, which is not in the CRAN version, so get it from http://www.braju.com/R/ instead.) The package also has isFile() and isDirectory() to test if a pathna

[Rd] list.files(recursive=T) does not return directory names

2005-11-25 Thread bill
list.files() (and dir()) don't appear to return names of directories when one uses the recursive=T argument. E.g., > dir(file.path(R.home(),"library"), pattern="^R$", recursive=T) [1] "Malmig/help/R" but the unix find commmand finds lots of R directories > z <- system(paste("find", file.path

Re: [Rd] "integrate" error using a constant function (PR#8348)

2005-11-25 Thread P Ehlers
Did you check the examples on the help page for integrate? integrand <- function(x) rep(5, length(x)) should do it. Definitely not a bug. Peter [EMAIL PROTECTED] wrote: > Full_Name: Joel Franklin > Version: 2.2.0 > OS: WinXP-Prof > Submission from: (NULL) (63.226.223.22) > > > The "integrate

[Rd] "integrate" error using a constant function (PR#8348)

2005-11-25 Thread joelpf
Full_Name: Joel Franklin Version: 2.2.0 OS: WinXP-Prof Submission from: (NULL) (63.226.223.22) The "integrate" function, when evaluating an integrand function that is constant (therefore not a function of the integral) cannot be valuated, and instead throws an error. Instead, the interate functio

[Rd] 'partial' in sort() inefficient?

2005-11-25 Thread Deepayan Sarkar
I often need to work with large vectors whose distribution I want to summarize by Q-Q plots. Since the vectors are large, I use a subset of quantiles, e.g. quantile(x, probs = ppoints(1000)) Unfortunately, this seemed to be taking too long for large x (much longer than 'sort'). I initially thou

[Rd] read.table without sep

2005-11-25 Thread Vasundhara Akkineni
Hello all, I have a data file table.txt which i have attached. I am trying to pass the columns as arguments to a function "totnorm" where i am displaying a total normalization plot. The function is given below: totnorm<-function(x,y){scale<-sum(x)/sum(y);xlab<-colnames(x);ylab<-colnames(y);x1<-x

Re: [Rd] Buliding a package (on Windows) does not produce libs directory

2005-11-25 Thread Prof Brian Ripley
There is no DLL being built. We have absolutely nothing to go on here, but there are dozens of examples on CRAN which do work. A simple one containing Fortran is 'ash' - perhaps you should study how yours differs from that. And please get R CMD INSTALL working before complicating the issue wit

[Rd] Buliding a package (on Windows) does not produce libs directory

2005-11-25 Thread Ales Ziberna
Dear expeRts! I have produced a package and I would like to compile it on windows to build a binary package. The package also includes Fortran code. This is where I have problems. The package compiles fine, however the Fortran code seams to be ignored. I have the Fortran code in src subdir