Displaying 20 results from an estimated 94 matches for "sklyar".
2009 Jan 13
2
particulars of importing/loading libraries
...ful for a
page number and maybe a quick fix in my example below as so far I have
not been able to find a clear explanation.
The problem can be illustrated by the following simple example (this is
a simple code for 2 packages, pack1 and pack2; plus an example).
Thank you for your replies.
Dr Oleg Sklyar
Research Technologist
AHL / Man Investments Ltd
+44 (0)20 7144 3107
osklyar at maninvestments.com
--- pack1: DESCRIPTION ------
Package: pack1
Version: 0.0.1
Date: 12 Jan 2009
Title: pack1 to test S3/S4 methods compatibility
Author: Oleg Sklyar
Depends: R (>= 2.7.1), methods
Maintainer: Oleg S...
2007 Oct 05
1
Sklyar's inline package: how to return a list?
Hi,
Below I have a mickey-mouse example using Oleg Sklyar's wonderful inline package.
The question I have is, how do I return multiple values, say in a list?
Inside the C code, I've also calculated 'sum'. How do I return this along with 'res'?
Ultimately, I want to return multiple matrix results. Thanks in advance for any cod...
2008 Feb 12
4
assigning NULLs to elements of a list
...st element should yield exactly the
same result as assigning any other object. So I was surprised when
assigning a NULL in fact removed the element from the list. Is this an
intended behaviour? If so, does anybody know where is it documented and
what is a good way around?
Thanks for help,
Oleg Sklyar
Here goes an example, the inline C-code does exactly what I would prefer
R were doing, but both R examples do remove the element 'b':
x = list(a=c(1L,2L), b=matrix(runif(4),2,2), c=LETTERS[1:3])
library(inline)
code="
SEXP res;
PROTECT(res = Rf_duplicate(x));
SET_VECTOR_EL...
2005 Feb 25
5
[Rdev] any way to generate "bitmap" (tif, jpeg, png etc) files in R CMD BATCH
...I need something previewable in the web browser: png, jpeg. Any
suggestions 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, Cambridge, CB10 1SD
England
phone/fax +44(0)1223 49 4478/4468
e-mail osklyar@ebi.ac.uk
2005 Feb 25
5
[Rdev] any way to generate "bitmap" (tif, jpeg, png etc) files in R CMD BATCH
...I need something previewable in the web browser: png, jpeg. Any
suggestions 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, Cambridge, CB10 1SD
England
phone/fax +44(0)1223 49 4478/4468
e-mail osklyar@ebi.ac.uk
2009 Mar 13
1
Rd \usage clause for an S4 replace method
...,missing,ANY}(x, i, j, ..., value)
which results in the following output:
## S4 method for signature 'TimeSeries, TimeDate, missing':
x[i, j, ..., drop]
\S4method{[<-}{TimeSeries,TimeDate,missing,ANY}(x, i, j, ..., value)
How should I document the latter? Thanks.
Dr Oleg Sklyar
Research Technologist
AHL / Man Investments Ltd
+44 (0)20 7144 3107
osklyar at maninvestments.com
**********************************************************************
Please consider the environment before printing this email or its attachments.
The contents of this email are for the named addre...
2005 Jul 01
1
C/C++ namespaces
...sion. Therefore, the suggestion/question - wouldn't it be
reasonable just to put the whole R includes into a unique namespace? It
wouldn't require any modifications in the existing libraries because if
the code is not conflicting, namespace can be omitted.
Does it have sense?
Regards
Oleg Sklyar
--
Dr Oleg Sklyar
European Bioinformatics Institute
Wellcome Trust Genome Campus
Hinxton, Cambridge
CB10 1SD
United Kingdom
tel +44 1223 492537
fax +44 1223 494468
email osklyar@ebi.ac.uk
[[alternative HTML version deleted]]
2005 Feb 25
3
passing command line arguments to 'R CMD BATCH myScript.R'
...is considered as a parameter, so only 'R CMD BATCH' is
executed. If however I use 'R CMD BATCH myScript --args myDataFile' then
R understands --args as an output file and generates a file with that name.
Does anyone has 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 osklyar at ebi.ac.uk
2008 Jan 07
3
Finding windows DLLs
The XML package relies on libxml2.dll (e.g., bundled with the CRAN
binary) installed in library/XML/libs. Unfortunately,
c:/WINDOWS/system32/libxml2.dll will be found and loaded before
this.
Is there any programatic solution?
Thanks,
Martin
--
Martin Morgan
Computational Biology / Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N.
PO Box 19024 Seattle, WA 98109
Location: Arnold
2010 May 07
1
Bug in R -e "command"
...stical Computing
...
> message('aaa
+
+
WORKING OLD VERSION:
* /share/R/20090611/bin/R -e "message('aaa aaa')"
R version 2.9.0 (2009-04-17)
Copyright (C) 2009 The R Foundation for Statistical Computing
...
> message('aaa aaa')
aaa aaa
>
>
Dr Oleg Sklyar
Research Technologist
AHL / Man Investments Ltd
+44 (0)20 7144 3803
osklyar at maninvestments.comno more
**********************************************************************
Please consider the environment before printing this email or its attachments.
The contents of this email are for the na...
2008 May 04
1
texi2dvi instead of pdflatex in R2.7.0? and related bioc 2.2 builds
...eded directories
* building 'EBImage_2.4.0.tar.gz'
2) have the tex settings been changed from 2.6.0 into 2.7.0 as changes
to vignette have not been significant and the compilation goes through
fine with 2.6.0.
Or I am missing something and doing something wrong?
Best,
Oleg
--
Dr Oleg Sklyar * EBI-EMBL, Cambridge CB10 1SD, UK * +44-1223-494466
2008 Apr 07
3
Overriding axis formatting with custom Axis method, Axis.numeric etc
...etMethod("Axis", signature(x="missing",at="ANY"), AxisFUN)
setMethod("Axis", signature(x="ANY",at="missing"), AxisFUN)
setMethod("Axis", signature(x="ANY",at="ANY"), AxisFUN)
Any ideas?
Thanks,
Oleg
Dr Oleg Sklyar
Technology Group
Man Investments Ltd
+44 (0)20 7144 3803
osklyar at maninvestments.com
**********************************************************************
The contents of this email are for the named addressee(s) only.
It contains information which may be confidential and privileged.
If you ar...
2009 Feb 11
1
setClassUnion with numeric; extending class union
...nderstand that the reason behind it failing to work is
that the virtual class numericOrNULL has not got the .Data slot from
numeric, but it would be nice to have such a functionality.
Any ideas about better ways for solving such a problem than the one
described above?
Thanks.
Best,
Oleg
Dr Oleg Sklyar
Research Technologist
AHL / Man Investments Ltd
+44 (0)20 7144 3107
osklyar at maninvestments.com
**********************************************************************
Please consider the environment before printing this email or its attachments.
The contents of this email are for the named addre...
2007 Jun 12
1
bug in R environments? Was: [BioC] 'recursive default argument' error...
..."datasets"
"methods"
[7] "base"
other attached packages:
rae230a
"1.16.0"
>
On Jun 11, 2007, at 11:27 PM, Seth Falcon wrote:
> "James W. MacDonald" <jmacdon at med.umich.edu> writes:
>
>> Hi Oleg,
>>
>> Oleg Sklyar wrote:
>>> Hi,
>>>
>>> anybody has an idea as for the following error, the example is
>>> actually
>>> from the GO package examples. Thanks, Oleg
>>>
>>>> library(GO)
>>>> egId <- "10043"
>>>> e...
2007 Aug 30
1
suggesting \alias* for Rd files (in particular for S4 method documentation)
...ll together, substituting them with pairs of
\section{Usage}{\preformatted{
}}
\section{Arguments}{
}
and putting all aliases marked above with * into internals, which is
definitely not the best way of going around documentation and
code/documentation mismatches.
Best regards,
Oleg
--
Dr. Oleg Sklyar * EBI-EMBL, Cambridge CB10 1SD, UK * +44-1223-464466
2007 Jul 23
2
R2.6 bug in arithmetics of S4 classes inherited from 'array', or intended behavior?
...")
[1] "EBImage"
> class(2*a)
[1] "Image"
attr(,"package")
[1] "EBImage"
Unfortunately, I do not have R versions installed between revisions
42199 and 42284, so I cannot narrow down to the particular revision.
Thanks in advance,
Oleg
--
Dr. Oleg Sklyar * EBI-EMBL, Cambridge CB10 1SD, UK * +441223493366
2007 Jan 30
4
Speed of for loops
Hi Everyone,
I have a question about for loops. If you have something like:
f <- function(x) {
y <- rep(NA,10);
for( i in 1:10 ) {
if ( i > 3 ) {
if ( is.na(y[i-3]) == FALSE ) {
# some calculation F which depends on one or more of the previously
generated values in the series
y[i] = y[i-1]+x[i];
} else {
y[i] <- x[i];
}
}
}
y
}
e.g.
>
2007 Jan 30
4
Speed of for loops
Hi Everyone,
I have a question about for loops. If you have something like:
f <- function(x) {
y <- rep(NA,10);
for( i in 1:10 ) {
if ( i > 3 ) {
if ( is.na(y[i-3]) == FALSE ) {
# some calculation F which depends on one or more of the previously
generated values in the series
y[i] = y[i-1]+x[i];
} else {
y[i] <- x[i];
}
}
}
y
}
e.g.
>
2005 Mar 16
1
returning NULL from .Call call
...// copy data from 'data' into 'result'
delete[] data;
UNPROTECT(1);
return result;
}
This function always has something to return and it works, but not
really elegantly and returning wrong data when fails.
Thanks in advance for any comments.
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 osklyar@ebi.ac.uk
2010 Jul 21
1
Bug: broken exception handling in S4 methods
...=en_GB
[5] LC_MONETARY=C LC_MESSAGES=en_GB LC_PAPER=en_GB
LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=en_GB
LC_IDENTIFICATION=C
attached base packages:
[1] splines stats graphics utils datasets grDevices methods
base
Dr Oleg Sklyar
Research Technologist
AHL / Man Investments Ltd
+44 (0)20 7144 3803
osklyar at ahl.com
**********************************************************************
Please consider the environment before printing this email or its attachments.
The contents of this email are for the named addressees ...{...