Re: [R] Output from test script during R CMD check

2010-03-03 Thread DarioAustralia
Ah yes sorry about that it was a vague posting. What I'd like to see when I do a R CMD check on the package and it gets to the part where it runs the test script, I'd like to show to the user on the screen the progress of the testing. What happens now is none of the cat("Test X was successful. \n

[R] Output from test script during R CMD check

2010-03-02 Thread DarioAustralia
Hello, In the .R file I put in the tests directory, I have a number of cat("My text here") type statements, that explain when a certain test completed successfully but everything I tried so far (like putting sink(NULL) at the top of the .R file) hasn't worked. Does someone know what to do here ?

Re: [R] identical() mystery

2010-03-01 Thread DarioAustralia
Thanks for your suggestions. A couple of useful functions in there I haven't heard of before. -- View this message in context: http://n4.nabble.com/identical-mystery-tp1573269p1574379.html Sent from the R help mailing list archive at Nabble.com. __ R-

Re: [R] Deleting colmuns with 0's and also writing multple csv files

2010-02-19 Thread DarioAustralia
Hi Anna, A column with all 0s will have a column sum of zero. So do this : dataset1[, which(colSums(dataSet1 > 0))] If you have a list of data.frames you could do this for(index in 1:10) { write.csv(yourListOfTables[[index]], file = paste("Dataset", index, ".csv", sep = ""), row.names

[R] Set Colour of Histogram Bars (lattice)

2010-02-18 Thread DarioAustralia
Hello there, I have a bunch of histogram bars that I'd like the first to be a certain colour, second to be another colour, third to be a third colour, and repeat for all my 39 bars. I thought this was the way to go, but I get the same cyan coloured bars for all the bars. I did a vector of 3 colo