Re: [R] decimal values

2007-05-04 Thread Oleg Sklyar
://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dr Oleg Sklyar * EBI/EMBL, Cambridge CB10 1SD, England * +44-1223-494466

Re: [R] Hardware for a new Workstation for best performance using R

2007-03-19 Thread Oleg Sklyar
-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dr Oleg Sklyar | EBI-EMBL, Cambridge CB10 1SD, UK | +44-1223-494466 __ R-help@stat.math.ethz.ch

Re: [R] reading BMP into R

2007-03-13 Thread Oleg Sklyar
]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dr Oleg Sklyar * EBI/EMBL, Cambridge CB10 1SD

Re: [R] Passing command line parameters to a script

2007-03-07 Thread Oleg Sklyar
]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dr Oleg Sklyar | EBI-EMBL, Cambridge CB10 1SD, UK

Re: [R] Wrinting integers in a matrix faile

2007-02-23 Thread Oleg Sklyar
-contained, reproducible code. -- Dr Oleg Sklyar | EBI-EMBL, Cambridge CB10 1SD, UK | +44-1223-494466 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting

Re: [R] Omiting repeated values

2007-02-21 Thread Oleg Sklyar
Oleg Sklyar * EBI/EMBL, Cambridge CB10 1SD, England * +44-1223-494466 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented

Re: [R] Installing Package rgl - Compilation Fails

2007-02-19 Thread Oleg Sklyar
. __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dr Oleg Sklyar | EBI-EMBL

Re: [R] Ubuntu Linux and X11

2007-02-17 Thread Oleg Sklyar
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dr Oleg Sklyar | EBI-EMBL, Cambridge CB10 1SD, UK | +44-1223-494466 __ R-help@stat.math.ethz.ch mailing

Re: [R] Ubuntu Linux and X11

2007-02-17 Thread Oleg Sklyar
because of X11 fonts. And in fact, I now recall that I had for while no test in my R plots, I thought some R options were set wrongly. But correcting the paths in xorg.conf solved all these issues. Oleg -- Dr Oleg Sklyar | EBI-EMBL, Cambridge CB10 1SD, UK | +44-1223-494466

[R] anyone has C++ STL classes stability issue if used with R

2007-02-13 Thread Oleg Sklyar
*/ UNPROTECT (nprotect); return res; } -- Dr Oleg Sklyar * EBI/EMBL, Cambridge CB10 1SD, England * +44-1223-494466 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

[R] anyone has C++ STL classes stability issue if used with R

2007-02-13 Thread Oleg Sklyar
Continued: With the following modifications (using pointers) it works (needs memory cleaning afterwards and new less operator though) and I do not understand why: typedef priority_queuePixel * PixelPrQueue; ... pq.push( new Pixel(i, j, val) ); ... Oleg Sklyar wrote: Hello, is there any one

Re: [R] anyone has C++ STL classes stability issue if used with R

2007-02-13 Thread Oleg Sklyar
, j, val) ); continue; } tgt[ index ] = BG; } } /* my main code was here, but deleted for debug */ UNPROTECT (nprotect); return res; } -- Dr Oleg Sklyar * EBI/EMBL, Cambridge CB10 1SD, England

Re: [R] Help with interfacing C R

2007-02-08 Thread Oleg Sklyar
/~osklyar/kb/CtoRinterfacingPrimer.pdf Regards, Oleg -- Dr Oleg Sklyar | EBI-EMBL, Cambridge CB10 1SD, UK | +44-1223-494466 Tim Smith wrote: Hi all, I was trying to set up an interface for using C functions in R. For this, my R file hello2.r

Re: [R] Running source from Unix line

2007-02-08 Thread Oleg Sklyar
--vanilla --quiet The from shell (e.g. to process smth in this dir, a, with b=2): ./thisScript `pwd` 2 Oleg -- Dr Oleg Sklyar | EBI-EMBL, Cambridge CB10 1SD, UK | +44-1223-494466 Amir Herman wrote: How can I run something like source(filename) from the Unix command line? Maybe somthing like

Re: [R] Help with interfacing C R

2007-02-08 Thread Oleg Sklyar
mentioned above! Oleg -- Dr Oleg Sklyar | EBI-EMBL, Cambridge CB10 1SD, UK | +44-1223-494466 Roland Rau wrote: Hi, On 2/8/07, *Oleg Sklyar* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: On Windows you need: - download and install Cygwin (cygwin.com http://cygwin.com

Re: [R] Help with interfacing C R

2007-02-08 Thread Oleg Sklyar
it should prompt that you are in E: now cd MyProgram Enter now you are in E:\MyProgram R CMD SHLIB hello.c Enter If this does not work, type in the same box: echo %PATH% Enter and send us the contents of this printout (PATH). Oleg -- Dr Oleg Sklyar | EBI-EMBL, Cambridge CB10 1SD, UK | +44-1223

Re: [R] Help with interfacing C R

2007-02-08 Thread Oleg Sklyar
, download and install it. I guess E:\prg_files\tools\bin are RTools, if so, this is fine. Your own program must not necessarily be in the PATH -- Dr Oleg Sklyar | EBI-EMBL, Cambridge CB10 1SD, UK | +44-1223-494466 __ R-help@stat.math.ethz.ch mailing

Re: [R] Help with interfacing C R

2007-02-08 Thread Oleg Sklyar
time time to read it to prevent further questions that could be prevented. It does not cover Windows, but the part it does not cover you have just mastered :) Again here is the address: http://www.ebi.ac.uk/~osklyar/kb/CtoRinterfacingPrimer.pdf Best, Oleg -- Dr Oleg Sklyar | EBI-EMBL, Cambridge

Re: [R] problems installing R on Linux

2007-02-07 Thread Oleg Sklyar
this rpm without braking half of your system dependencies. Best, Oleg -- Dr Oleg Sklyar | EBI-EMBL, Cambridge CB10 1SD, UK | +44-1223-494466 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

[R] Step-by-step guide for using C/C++ in R; WAS: [Rd] Speed of for loops

2007-01-30 Thread Oleg Sklyar
wrote: On Tue, Jan 30, 2007 at 12:15:29PM +, Oleg Sklyar wrote: magnitude using c-functions for complex vector indexing operations. If you need instructions, I can send you a very nice Step-by-step guide for using C/C++ in R which goes beyond Writing R Extensions document. Hi Oleg

Re: [R] Making TIFF images with rtiff

2007-01-20 Thread Oleg Sklyar
http://www.ebi.ac.uk/~osklyar/EBImage or http://bioconductor.org/packages/2.0/bioc/html/EBImage.html will read/write more than 90 formats including TIFF. Trivial to install and run on Windows. Regards, Oleg On 12/01/07, Inman, Brant A. M.D. [EMAIL PROTECTED] wrote: Many medical journals and

Re: [R] Plot .jpeg image in margins?

2007-01-08 Thread Oleg Sklyar
I am not sure what you mean by in margins, if this is keeping the aspect ration, then the answer is yes. Please check EBImage, http://www.ebi.ac.uk/~osklyar/EBImage/ . The package will allow to read/write images in most image formats, the method image() redefined for the Image class will produce

Re: [R] importing bitmap images to R

2006-12-30 Thread Oleg Sklyar
http://bioconductor.org/packages/2.0/bioc/html/EBImage.html This will read/write about 95 image formats into R, all those supported by ImageMagick and provide many image processing filters. If Windows is your platform, this version will work on Windows as well (the version release in Bioconductor

Re: [R] rimage package broken with fedora upgrade

2006-12-30 Thread Oleg Sklyar
Cannot help you much with that as the thing seems to compile normally. As you use a global R installation, try giving yourself write permissions in /usr/lib/R/library, this might help. Otherwise, try installing R from source in your home or elsewhere where you have all write permissions and check

Re: [R] Erosion, mathematical morphology

2006-11-27 Thread Oleg Sklyar
around ImageMagick library with many functions added. The only minus, still no Windows support -- Linux, Unix or Mac. Best, Oleg Sklyar On 20/11/06, Milton Cezar Ribeiro [EMAIL PROTECTED] wrote: Hi there, Try this require(adehabitat) ?morphology You can also try this for binary

Re: [R] changing image dimensions

2006-11-08 Thread Oleg Sklyar
'EBImage' R-package from www.bioconductor.org. It's based on ImageMagick and will allow you to do this and much more with images of any time. The prerequisite: either Linix/Unix or Mac (from source) -- will not work on Windows. On 07/11/06, Milton Cezar Ribeiro [EMAIL PROTECTED] wrote: Hi

Re: [R] How to start R with a file loaded?

2006-10-25 Thread Oleg Sklyar
Assume you want to execute code in 'mycode.R', the easiest way is: echo source('mycode.R') | R --vanilla --quiet If you do it in a shell script, you can also pass variables to your code like this (list of shell script): #!/bin/sh echo var1=${1};var2=${2};source('mycode.R') | R --vanilla --

Re: [R] The old question: R vs MATLAB vs...: image analysis

2006-10-16 Thread Oleg Sklyar
@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dr Oleg Sklyar * EBI/EMBL, Cambridge CB10 1SD, England * +44-1223-494466

Re: [R] Compiling R 2.4.0 in ubuntu/linux

2006-10-12 Thread Oleg Sklyar
-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dr Oleg Sklyar * EBI/EMBL, Cambridge CB10 1SD, England * +44-1223-494466 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

[R] Anyone managed to run JGR on amd64 Linux? SegFault

2006-10-11 Thread Oleg Sklyar
,dep=TRUE) library(JGR) Loading required package: rJava Loading required package: JavaGD Loading required package: iplots LOG: [(nil)] JNI_GetCreatedJavaVMs: IMPLEMENT ME!!! Segmentation fault compaq # Any ideas? Thanks, Oleg -- Dr Oleg Sklyar * EBI/EMBL, Cambridge CB10 1SD, England * +44-1223

Re: [R] SOLVED: Anyone managed to run JGR on amd64 Linux? SegFault

2006-10-11 Thread Oleg Sklyar
javareconf (thanks Prof. Ripley). RE-install rJava, install JGR. Start JGR - worked for me with sun-java binary deb of Ubuntu Edgy and R2.4.0alpha from source. Best, Oleg Oleg Sklyar wrote: Hi, is there anyone who successfully used JGR (Java GUI for R) on Linux machines, more specific on 64bit AMD

Re: [R] 2 linux/R environment questions

2006-10-11 Thread Oleg Sklyar
to run R CMD javareconf to get the right environment variables set in R itself. -- Dr Oleg Sklyar * EBI/EMBL, Cambridge CB10 1SD, England * +44-1223-494466 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

[R] parsing '...' function argument?

2005-06-30 Thread Oleg Sklyar
range. Any ideas? (Just to mention - if there were only one argument in '...', say '1:10', then length(...) would return 10 and one could access elements by ...[[i]], but all this fails if there are two arguments or more). Thanks Oleg -- Dr Oleg Sklyar European Bioinformatics Institute Wellcome Trust

[R] passing command line arguments to 'R CMD BATCH myScript.R'

2005-02-25 Thread Oleg Sklyar
a solution for the problem? Best regards Oleg -- Dr Oleg Sklyar European Bioinformatics Institute Wellcome Trust Genome Campus Hinxton, Cambridge, CB10 1SD England phone/fax +44(0)1223 49 4478/4468 e-mail [EMAIL PROTECTED] __ R-help@stat.math.ethz.ch mailing

[R][Rdev] any way to generate bitmap (tif,jpeg,png etc) files in R CMD BATCH

2005-02-25 Thread Oleg Sklyar
how to proceed? Generally I could use command line linux tools to convert from almost any bitmpa format to the required png or jpeg, but it would be nicer to have them as direct R output. Kind regards Oleg -- Dr Oleg Sklyar European Bioinformatics Institute Wellcome Trust Genome Campus Hinxton

[R] Keeping the data of C structure in R variables?..

2005-02-04 Thread Oleg Sklyar
Dear all, does anybody know if there is a way to implement the following idea: if for example I have a C/C++ structure of form: struct { int size; char * data; } SData; in C code I could create some implementation that would create this structure by pointer and fill in the data, so I would