Re: [R] how to make hash?& append element, if i want following condition

2012-02-22 Thread slre
sagarnikam123 wrote > > i did it, but using hash package ,i got error like > >>hash1 <- new.env() >> hash1$A <- c(1.2, 3.4, 4.5) >> hash1$A > [1] 1.2 3.4 4.5 > >> h<-hash(keys=c("A","B"),values=c(hash1$A,hash1$A) ) > Error in .set(h, ...) : Keys of length 2 do not match values of length 6 >

Re: [R] R CMD build creates tar file instead of tar.gz file

2011-04-04 Thread slre
I had an identical problem building in R.2.12 with the latest (last week's) Rtools. Interestingly I found that if I used a DOS path in rcmd build (eg rcmd build 0.9\pkg) I got a .tar, but if I replaced it with the unix-like path as in rcmd build 0.9/pkg I got a .tar.gz Weird but workable. S El