[Rd] ranges and contiguity checking

2010-05-12 Thread James Bullard
Hi All, I am interfacing to some C libraries (hdf5) and I have methods defined for '[', these methods do hyperslab selection, however, currently I am limiting slab selection to contiguous blocks, i.e., things defined like: i:(i+k). I don't do any contiguity checking at this point, I just grab the

Re: [Rd] ranges and contiguity checking

2010-05-12 Thread James Bullard
t: Re: [Rd] ranges and contiguity checking >> >> On 12/05/2010 2:18 PM, James Bullard wrote: >> > Hi All, >> > >> > I am interfacing to some C libraries (hdf5) and I have >> methods defined for >> > '[', these methods do hyperslab sel

[Rd] difficulties with setMethod("[" and ...

2010-05-17 Thread James Bullard
Apologies if I am not understanding something about how things are being handled when using S4 methods, but I have been unable to find an answer to my problem for some time now. Briefly, I am associating the generic '[' with a class which I wrote (here: myExample). The underlying back-end allows m

Re: [Rd] How do you make a formal "feature" request?

2010-08-21 Thread James Bullard
I use the summary function. Being unfamiliar with the SAS report function, it is difficult to answer more completely. jim On Aug 21, 2010, at 8:41 AM, Donald Winston wrote: > Who decides what features are in R and how they are implemented? If there is > someone here who has that authority I ha

[Rd] self-referential representations in S4

2011-04-19 Thread James Bullard
I'm trying to do the following: > setClass("MyNode", representation(parent = "MyNode")) [1] "MyNode" Warning message: undefined slot classes in definition of "MyNode": parent(class "MyNode") I scanned the docs, but found nothing. The representation function has no problem, it's the setClass func

[Rd] External pointers and an apparent memory leak

2011-09-15 Thread James Bullard
I'm using external pointers and seemingly leaking memory. My determination of a memory leak is that the R process continually creeps up in memory as seen by top while the usage as reported by gc() stays flat. I have isolated the C code: void h5R_allocate_finalizer(SEXP eptr) { Rprintf("Calli

Re: [Rd] External pointers and an apparent memory leak

2011-09-15 Thread James Bullard
=by 0x4E6F3D8: do_lapply (apply.c:72) Thanks for any help! jim From: Simon Urbanek [simon.urba...@r-project.org] Sent: Thursday, September 15, 2011 8:35 AM To: James Bullard Cc: r-devel@r-project.org Subject: Re: [Rd] External pointers and an apparent m

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

2006-10-11 Thread James Bullard
Gavin Simpson wrote: > On Wed, 2006-10-11 at 17:58 -0400, T C wrote: >> 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: --

Re: [Rd] linking hdf5, requires setting LD_LIBRARY_PATH

2010-03-02 Thread James Bullard
On Mar 2, 2010, at 17:45, Dirk Eddelbuettel wrote: Unless I am missing something, this has nothing to do with hdf5 per se. See below. No, you are not missing anything. Thank you for the response. This is exactly what I was looking for. Thanks again, Jim On 2 March 2010 at 16:

[Rd] confusion about evaluation.

2008-07-20 Thread James Bullard
Hi All, I am confused about the following code. I thought that the problem stemmed from lazy evaluation and the fact that 'i' is never evaluated within the first lapply. However, I am then confused as to why it gets bound to the final element of the lapply. The environments of the returned

[Rd] allocation of large matrix failing

2005-07-12 Thread James Bullard
Hello, this is probably something silly which I am doing, but I cannot understand why this allocation is not happening. Here is a my C code which tries to allocate a list of size 333559, and then a matrix of size 8*333559 I thought I might be running into memory problems, but R is not even using

[Rd] wchar and wstring.

2005-08-26 Thread James Bullard
Hello all, I am writing an R interface to some C++ files which make use of std::wstring classes for internationalization. Previously (when I wanted to make R strings from C++ std::strings), I would do something like this to construct a string in R from the results of the parse. SET_VECTOR_ELT(vals

[Rd] Question about SET_LENGTH

2005-08-29 Thread James Bullard
Hello all, thanks for all the help on the other issues. This one should be relatively straightforward. I have a vector of integers which I allocate to be the maximal size possible (meaning I'll never see more than cel.GetNumOutliers, but most likely I'll see less) therefore, I want to resize the ve

Re: [Rd] wchar and wstring. (followup question)

2005-08-29 Thread James Bullard
ple i based my code of of in main/character.c used wcstombs. Thanks again for all of the help. jim Prof Brian Ripley wrote: > On Fri, 26 Aug 2005, James Bullard wrote: > >> Hello all, I am writing an R interface to some C++ files which make use >> of std::wstring classes f

[Rd] calling fortran from C

2005-10-20 Thread James Bullard
Hello, I had a question about calling some of R's fortran routines from C. Specifically, I would like to call: dqrfit from some C code which will be bundled as an R package. I was hoping someone knew of an example in some of R's code which does something like this (any fortran call from R's

[Rd] native logistic regression

2005-10-25 Thread James Bullard
Hello, thanks for the answers to my last questions and apologies for not seeing the answers staring me down in the manual. At the risk of asking another potentially obvious question ... we are currently using some of the NAG routines for model fitting and I am trying to re-write the relevant po

[Rd] segfault following a detach

2005-12-09 Thread James Bullard
Hello, first off, thanks for all of the previous help; hopefully someone will have some insight on this question. I am attempting to track down a segmentation fault which occurs only after a detach(2) is called in the code (I have replaced the detach(2) with detach(package:DSA) and that fails a

[Rd] multiple packages using the same native code.

2006-03-15 Thread James Bullard
This might fall under the purview of bundles, but I could not find any example bundles which demonstrated what I am after. I would like to construct two packages (A, B) which utilize a number of common C functions. The most straightforward way to do this is just copy the relevant .c and .h file

Re: [Rd] multiple packages using the same native code.

2006-03-16 Thread James Bullard
users could download and install packages separately even if it's a bundle) then it seems like there is no way to generally modify the configure file to do this. thanks, jim Seth Falcon wrote: >Hi Jim, > >James Bullard <[EMAIL PROTECTED]> writes: > > >>I

[Rd] R CMD check: non source files in src on (2.3.0 RC (2006-04-19 r37860))

2006-04-19 Thread James Bullard
Hello, I am having an issue with R CMD check with the nightly build of RC 2.3.0 (listed in the subject.) The problem is this warning: * checking if this is a source package ... WARNING Subdirectory 'src' contains: README _Makefile These are unlikely file names for src files. In fact, they ar