Re: [Rd] level of mutability for the type of a SEXP

2008-02-21 Thread Prof Brian Ripley
On Tue, 19 Feb 2008, Laurent Gautier wrote: > Dear list, > > I am writing C code to interface with R, and I would like to know the > level of mutability for the type of a SEXP. > > I see that there is a macro/function TYPEOF(), and that it can be used > as an l-value, as well as a macro/function S

Re: [Rd] Suggestion: isLoaded() to test if a package is loaded (without loading it)

2008-02-21 Thread Seth Falcon
"Henrik Bengtsson" <[EMAIL PROTECTED]> writes: > Hi, > > for 'affxparser' (Bioconductor), we needed a function to test if a > certain package was loaded or not, but we did not want to load it if > it wasn't, which is why we couldn't use require(). We came up with > the following solution: > > is

[Rd] Suggestion: isLoaded() to test if a package is loaded (without loading it)

2008-02-21 Thread Henrik Bengtsson
Hi, for 'affxparser' (Bioconductor), we needed a function to test if a certain package was loaded or not, but we did not want to load it if it wasn't, which is why we couldn't use require(). We came up with the following solution: isPackageLoaded <- function(package, version=NULL, ...) { s

Re: [Rd] Assigning a sub-matrix from a data frame to a regular (PR#10822)

2008-02-21 Thread Greg . Snow
Part of the problem is that you are not adjusting for the fact that you are smarter than the computer. Realize that the way you are doing the assignment requires a lot of different things behind the scenes and remember that data frames are basically lists with some extra attributes and matricies a

Re: [Rd] Assigning a sub-matrix from a data frame to a regular matrixcauses strange behaviour (version 2.6.1) (PR#10799)

2008-02-21 Thread Greg Snow
Part of the problem is that you are not adjusting for the fact that you are smarter than the computer. Realize that the way you are doing the assignment requires a lot of different things behind the scenes and remember that data frames are basically lists with some extra attributes and matricies a

[Rd] Feedback on a colClasses() generator function in progress?

2008-02-21 Thread Henrik Bengtsson
I'm working on colClasses() function that generates "colClasses" vectors for read.table() using a compact format string (see below). The below is what I got right now. Before adding it to R.utils, I would like to check with you if I'm missing something obvious such as certain column classes, if th

Re: [Rd] DNAcopy package output data

2008-02-21 Thread Vladmir Makarov
>The longer answer is 'yes', since the source of the > function is readily available (typing segment) Hello, That is exactly why I have posted this question at the development forum - there was no way of specifying output parameters in the "segment" function Thank you Vlad On 2/20/08, Martin Morg

Re: [Rd] Incorrect paste() output (PR#10801)

2008-02-21 Thread asfe
Thank you for your kind answers and sorry for the noise I created. -- António Ferreira - http://www.di.fc.ul.pt/~asfe Assistant Lecturer - Department of Informatics Faculty of Sciences - University of Lisbon - PT __ R-devel@r-project.org mailing list h

[Rd] ar on a constant series

2008-02-21 Thread Patrick Burns
Apparently it is quite rare to be as stupid as me and want to predict a constant time series with 'ar'. > ar(rep(4, 60)) Error in if (order > 0) coefs[order, 1:order] else numeric(0) : missing value where TRUE/FALSE needed In addition: Warning message: In if (order > 0) coefs[order, 1:order] el