[R] using boost in R package

2008-11-17 Thread Vidhu Choudhary
Hi All, I am making a R package which is using a boost c++ library. Can some suggest how can I compile the dll in windows using boost. It makes a package but during installation in fails to link boost and give errors Any help will be useful Thanks Vidhu _

[R] Making R Package (how to include a library)

2008-11-12 Thread Vidhu Choudhary
Hi All, I am making a R package which uses some C code. and existing library.My src folder has some .c files. and a Makevars.in Makevars.in contains export PKG_LIBS="-L. -lbz2" R CMD SHLIB bed2vector.C R CMD SHLIB wdl.C R CMD SHLIB peaks.C R CMD SHLIB cdensum.c When I try library(libraryname). It

[R] Reading the data from specific columns

2008-07-22 Thread Vidhu Choudhary
Hi All, I have a huge tab separated file which a many columns. I want to read only few specific columns in R object. There are no column names/headers in the file. Can someone please suggest how can I do that. I checked the help of read.delim but wasnt able to find such option Thank you Reagards V

[R] RSQLite maximum table size

2008-07-16 Thread Vidhu Choudhary
Hi All, I am trying to make write a table in RSQLite. And I get the error mentioned below mat<-as.data.frame(matrix(rnorm(n=24400),nrow=244000,ncol=1000)) > dbWriteTable(con, "array", mat) [1] FALSE *Warning message: In value[[3]](cond) : RS-DBI driver: (error in statement: too many SQL var

[R] Possible cause of the error: unknown c standard 'gnu99'

2008-06-23 Thread Vidhu Choudhary
Hi All, I am getting error "unknown c standard 'gnu99'. I have attached the screen shot. Can anyone suggest what is causing this error thank you Best regards Vidhu __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE d

[R] Error in `[.matrix.coo`(x, rw, cl) : Subscripts out of bound

2008-05-20 Thread Vidhu Choudhary
Hi All, I am facing a strange problem. I am making a R Package that internally run various packages and summarizes the results from them. I am getting this error from the piece of code written below. The text in red color is throwing Error in `[.matrix.coo`(x, rw, cl) : Subscripts out of bound Val

Re: [R] Error while making R package

2008-05-09 Thread Vidhu Choudhary
Hi All, *I am still facing the problems in making R package on windows. * -- Making package t1 adding build stamp to DESCRIPTION installing NAMESPACE file and metadata making DLL ... making CGHseg_rewrite.d from CGHseg

[R] Error while making R package

2008-05-01 Thread Vidhu Choudhary
Hi All, I am trying to make R package using R 2.6.2 And I am getting following error. When I give R CMD check t1\ -- Making package t1 adding build stamp to DESCRIPTION making DLL ... making CGHseg_rewrite.d from CGHseg_rewrite.c making rowMedians.d from rowMedians.c maki

[R] How to stop buffering of "cat"

2008-04-30 Thread Vidhu Choudhary
Hi All, My R code takes very long time to finish the processing. I want to see at what stage the script is running. So I wrote some output messages using cat. But instead of displaying the cat messages at different stages they are buffered and displayed in the end when entire processing is done. Ca

[R] c code working in linux and hanging in windows

2008-04-29 Thread Vidhu Choudhary
Hi All, I am calling some c code from R. It successfully makes the dll and .so files. When I run .so in Linux is works prefect but hangs in windows. Though the dll loads but it never returns back from the c function Can you please suggest the possible cause of this thank you vidhu [[alte

[R] How to hide the warnings

2008-04-29 Thread Vidhu Choudhary
Hi All, I want to hide all the system(R) generated warning messages and want only the messages from my script should be shown when i run myscript.R Can you please suggest how can I hide the warnings Thank you Vidhu [[alternative HTML version deleted]]

[R] making a dll for windows eviornment for R

2008-04-25 Thread Vidhu Choudhary
Hi All, I have a .c file and I need to make a dll so that it could be called by R. I have successfully made .so from .c file and its working great. But i have no clue of making dll. I tried googling for help ...but not much of use Please suggest something regards Vidhu [[alternative HTM

[R] FASeg

2008-04-25 Thread Vidhu Choudhary
Hi All, I was using FASeg package. Now when I am trying to install this library I get the message Warning message: package 'FASeg' is not available Can someone please suggest something. Thank you vidhu [[alternative HTML version deleted]] __ R

[R] read table not reading lines containing single quotes

2008-04-09 Thread Vidhu Choudhary
Hi, * I am using read.table command as follow kegg<-read.table("c:/IDs.tab",header =TRUE,quote= "'", sep="\t") * Fragment of file is as follow: ID Pathway 04916Melanogenesis 04920Adipocytokine signaling pathway 04930Type II diabetes mellitus 04940Type I diabetes mellitus 0

[R] Cannot run R from command prompt

2008-04-04 Thread Vidhu Choudhary
Hello, I have installed R 2.6 on windows 2000 and now from the command prompt when I type R it show " 'R' is not recognized as an internal or external command, operable program or batch file." If I change the path to C:\R\R-2.6.2\bin and then type R it runs fine. I have changed my envionment vari

[R] Error in plot.new() : figure margins too large

2008-01-16 Thread Vidhu Choudhary
Hi I am getting error : Error in plot.new() : figure margins too large Can you please help -code is temp <- seq(550/2, 2200, 550/2) sV2 <- c(1, 1+temp[-length(temp)]) eV2 <- temp i=1 bitmap(paste("c:/vidhu/poster/poster_