Displaying 20 results from an estimated 8000 matches similar to: "suggesting \alias* for Rd files (in particular for S4 method documentation)"
2009 Mar 13
1
Rd \usage clause for an S4 replace method
Given S4 methods [ and [<-, how do I write the Rd-file usage clause for
the latter one?
What I have now is:
\S4method{[}{TimeSeries,TimeDate,missing}(x, i, j, ..., drop)
\S4method{[<-}{TimeSeries,TimeDate,missing,ANY}(x, i, j, ..., value)
which results in the following output:
    ## S4 method for signature 'TimeSeries, TimeDate, missing':
    x[i, j, ..., drop]
   
2008 Feb 12
4
assigning NULLs to elements of a list
Dear developers:
I have just came across an (unexpected to me) behaviour of lists when 
assigning NULLs to list elements. I understand that a NULL is a valid R 
object, thus assigning a NULL to a list 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
2007 Jul 23
2
R2.6 bug in arithmetics of S4 classes inherited from 'array', or intended behavior?
Hi,
I have an S4 class directly derived from 'array' as shown in the code
below (EBImage package of Bioconductor 2.1, devel), it simply contains
array adding a couple of slots:
setClass ("Image",
  representation (colormode="integer", filename="character", 
    compression="character", resolution="numeric", features="list"
  ),
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
2008 May 04
1
texi2dvi instead of pdflatex in R2.7.0? and related bioc 2.2 builds
Dear lists:
I am somewhat puzzled by the use of texi2dvi/pdflatex in R2.7.0. When 
building EBImage (bioconductor) with 2.7.0 I get the same error both in 
Windows and Linux, which reads the following:
** building package indices ...
* DONE (EBImage)
* creating vignettes ... ERROR
/usr/bin/texi2dvi: pdflatex exited with bad status, quitting.
Error in texi2dvi(file = bft, pdf = TRUE, clean =
2005 Feb 25
3
passing command line arguments to 'R CMD BATCH myScript.R'
Hi Community,
I have a question about how to pass command line parameters to R script 
running in the batch mode. The problem is: there is a banch of data 
files which are to be processed by R script called from a web-server, 
i.e. in the batch mode. The web server generates data files and passes 
their names calling 'R CMD BATCH' one by one for every file. Now the 
question is how to
2007 May 22
2
inline C/C++ in R: question and suggestion
This is a question and maybe an announcement.
We've been discussing in the group that it would be nice to have a
mechanism for something like "inline" C/C++ function calls in R. I do
not want to reinvent the wheel, therefore, if something like that
already exists, please give me a hint -- I could not find anything. If
not, here is a working solution, please criticise so I could
2007 Dec 13
1
S4 class extending data.frame?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I would like to build an S4 class that extends
a data frame, but includes several more slots.
Here's an example using integer as the base
class instead:
setClass("c1",representation(comment="character"),contains="integer")
z1 = new("c1",55,comment="hello")
z1
z1+10
z1[1]
z1 at comment
 -- in
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.
>
2007 Feb 13
2
anyone has C++ STL classes stability issue if used with R
Hello,
is there any one who uses C++ STL classes when programming shared libs 
for R and has had any problems with STL?
In the very simple example below I am constantly getting segfaults when 
trying to populate the queue. The segfault occurs at what looks like a 
random index in the loop when pushing another element to the queue. 
Reproduced on 4 machines. Object x is an Image as in EBImage,
2007 Feb 08
1
Help with interfacing C & R
Hi all,
I was trying to set up an interface for using C functions in R. For this, my R file hello2.r is:
---------------------------------------------------------------------------------
hello2 <- function(n) {
.C("hello", as.integer(n))
}
hello2(3)
--------------------------------------------------------------------------------
and my hello.c file is:
2007 May 29
1
Use of Rf_duplicate
First, thanks to those of you who responded to my previous post about my
code that was taking longer and longer to process.  After following your
suggestions, and I now thinking that the problem was some calls to
Rf_duplicate in my C code.
So I'm hoping I could get some clarification on what Rf_duplicate actually
does.  What is the real difference between
PROTECT(y=x); and
PROTECT (y =
2008 Mar 05
1
SEXP size management.
Hi,
Trying to decrease the size of a SEXP variable without reassigning
values individually in a loop.
So far, I've tried using Realloc, as the follow source demonstrates:
SEXP dothis() {
	SEXP Rblah;
	PROTECT(Rblah = NEW_INTEGER(6));
	int* blah = INTEGER(Rblah);
	blah[0] = 1;
	blah[1] = 2;
	blah[2] = 3;
	Realloc(Rblah, 3, INTEGER);
	UNPROTECT(1);
	return(Rblah);
}
According to the
2008 May 04
1
help with segmentation fault
Hello all,
I'm trying to have C called by R. I wrote C codes that worked
perfectly fine with R-2.6.0 in
windows system ( using R tools).
I had to change to SuSE Linux (this system has 3.2 GHz  Intel
Xeon processors and 4 GB of RAM), the C codes were compiled okay but
when it was called to R-2.6.2, I got
error mesage :
***caught segfault***
address 0x1df5000, cause 'memory not
2007 Mar 12
3
reading BMP into R
Um texto embutido e sem conjunto de caracteres especificado associado...
Nome: n?o dispon?vel
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20070312/112cd7f9/attachment.pl
2006 Oct 11
2
Compiling R 2.4.0 in ubuntu/linux
I'm not sure if this is the place to post this question, but, I am
having trouble compiling the source code. I do have a suitable C
compiler and f2c but I get this error when I run ./configure
configure: error: --with-readline=yes (default) and headers/libs are
not available
Any ideas? Thanks.
2006 Oct 11
2
Compiling R 2.4.0 in ubuntu/linux
I'm not sure if this is the place to post this question, but, I am
having trouble compiling the source code. I do have a suitable C
compiler and f2c but I get this error when I run ./configure
configure: error: --with-readline=yes (default) and headers/libs are
not available
Any ideas? Thanks.
2007 Feb 21
3
Omiting repeated values
Dear all R users,
   
  Is there any function to omit repeated values in a vector? Your help will be highly appreciated.
   
  Thanks 
  stat
 				
---------------------------------
 Here’s a new way to find what you're looking for - Yahoo! Answers 
	[[alternative HTML version deleted]]
2007 Feb 08
3
Running source from Unix line
How can I run something like source("filename") from the Unix command line?
Maybe somthing like ./R CMD source("filename") - this does not work.
I need to run an R source code file with a command from the Unix command
line.
assuming that I have R installed on my system.
Thank you all
Amir.
-- 
View this message in context: