Here are some leads:
1)
https://github.com/jeffreyhorner/rapache/commit/c208e0b17eed04e265e7d555bd9f5395ae6ff7cb
2) http://www.rapache.net/rapache-1.1.16.tar.gz
On Thu, 2012-01-19 at 15:03 +, GĂsli Leifsson wrote:
> Hi all
>
> I was trying to isntall RApache last week but ran into strnge p
James,
Works for me!
In a file, 'test.c', I have:
void h5R_allocate_finalizer(SEXP eptr) {
char* vector = (char*) R_ExternalPtrAddr(eptr);
free(vector);
printf("memory freed at address %lu\n", (long unsigned) vector);
R_ClearExternalPtr(eptr);
}
SEXP h5R_allocate(SEXP size) {
Also consider subsetting:
cat("a: "); print(system.time( { A <- matrix(c(1.0,1.1),5,1000); 0 } ))
cat("h: "); print(system.time( { sum(A[1:5,1:1000]) } ))
cat("i: "); print(system.time( { sum(A[]) } ))
cat("j: "); print(system.time( { sum(A) } ))
In contrast with Python's NumPy array, the
On 04/19/2011 05:00 AM, r-devel-requ...@r-project.org wrote:
Date: Mon, 18 Apr 2011 11:48:40 -0400
From: Karl-Dieter Crisman
To:r-devel@r-project.org
Cc: Jason Grout
Subject: [Rd] How to get R to compile with PNG support
Message-ID:
Content-Type: text/plain; charset=windows-1252
Dear R devel lis
The HTML link 'Customizing package compilation' in 'Writing R
Extensions' is broken. See the offending link near here:
http://cran.r-project.org/doc/manuals/R-exts.html#Submitting-a-package-to-CRAN
In R-exts.texi, it looks like a five-argument @xref was intended. Oddly,
the PDF link works anywa
Some very minor things:
- typo R-admin manual, section 2.8, fourth sentence beginning "This will
find build...", should read "This will build..."?
- typo in src/library/compiler/man/compile.Rd, line 35:
"\item{ascii}{logical; should the compiled file be saved with in ascii"
should read "...s
Here's a temporary fix; reassign 'cat' in the environment of
'txtProgressBar':
tpbEnv <- new.env()
assign("cat", function(...) cat(file=stderr(),...), tpbEnv)
environment(txtProgressBar) <- tpbEnv
Best,
Matt
On 03/15/2011 05:37 AM, Andreas Borg wrote:
Hi all,
I use txtProgressBar to monitor
On Wed, 2011-03-09 at 17:15 -0900, Zepu Zhang wrote:
> Hello list,
>
> I have the following scenario:
>
> f1 <- function(a)
> {
> # doing things; may need 'a', but does not change 'a'.
>
> g <- function(x)
> {
> sum(x + a)# Say. Use 'a'; does not change 'a'.
Th
On Fri, 2010-12-24 at 15:05 -0500, Simon Urbanek wrote:
> On Dec 24, 2010, at 2:45 PM, Matt Shotwell wrote:
>
> > I do keep track of R's bug reports by RSS (Atom actually), but it's a
> > bit more complicated than just copying the `feed' link after following
>
I do keep track of R's bug reports by RSS (Atom actually), but it's a
bit more complicated than just copying the `feed' link after following
the Show open bugs new-to-old link. If you use that feed, you will get
the earliest 100 entries, starting Jan 28, 2000. I have had good luck
monitoring the mo
On Wed, 2010-11-24 at 12:12 -0500, ivo welch wrote:
> I just figured out what is happening. The root drive (presumably OSX
> virtual memory) becomes depleted. The error message about "memory not
> mapped" was a hint, too. So, not really R's fault. However, I wonder
It still may be R's fault.
On Tue, 2010-11-02 at 11:28 -0400, Christophe Dutang wrote:
> Hello all,
>
> I don't know if it is possible, but I would like to use do.call in C code in
> my package. The function do.call is defined as
> > do.call
> function (what, args, quote = FALSE, envir = parent.frame())
> {
> if (!is.li
On Fri, 2010-10-22 at 05:30 -0400, Nick Sabbe wrote:
> Hello all.
>
> I'm developing a package for R holding a Gibbs sampler, which tends to have
> better performance when written in C than in R.
> During each iteration in the Gibbs sampler, I need the inverse of a
> symmetric matrix.
> For this,
In working with small numbers, I usually look for a solution involving a
log transformation. For instance, when a or b are very small, we can
compute the ratio
a / ( a + b )
more safely by
1 / ( 1 + exp( log(b) - log(a) ) )
Alternative data types are sure to cause issues with portability. It's
On Fri, 2010-08-20 at 12:58 -0400, Sharpie wrote:
>
> Donald Paul Winston wrote:
> >
> > Aren't you the guy who created Rserve?
> >
> > I'd like to develop a web app so clients can perform exploratory data
> > analysis with their browser with no installed software, not even java (I
> > don't lik
On Thu, 2010-08-19 at 17:07 -0400, Kevin Coombes wrote:
> I use it, frequently. The idea for it goes back to some of Knuth's
> original literate programming ideas for developing weave and tangle when
> he was writing TeX (the program). I want to be able to document the
> pieces of some complex
R-devel list,
I'm working on a wrapper for R to the POSIX terminal interface. I'd like
to make this code available as a package (as well as a connection
patch).
The 'seek', 'truncate', 'flush', 'open', and 'close' generic functions
are a great help for the packaged interface. The only two missing
setup_starma is in src/library/stats/src/pacf.c
-Matt
On Tue, 2010-07-06 at 11:04 -0400, Hodgess, Erin wrote:
> Dear R Developers:
>
> Is there a way to look at the underlying code from such items as
> R_setup_starma, please?
>
> Thanks,
> Erin
>
>
> Erin M. Hodgess, PhD
> Associate Professo
The document RFC 4180 (which appears to be the CSV standard used by R,
see ?read.table) considers spaces to be part of the fielded value. Some
have taken this to mean that all white space characters should be
considered part of the fielded value, though the RFC is not explicit
here. Hence, this beh
On Thu, 2010-06-24 at 03:48 -0400, Martin Maechler wrote:
> > "BW" == Brandon Whitcher
> > on Wed, 23 Jun 2010 12:14:35 +0100 writes:
>
> BW> Peter, thanks for your comments. The reason I have taken this issue
> BW> to R-devel is from the advice of Kurt Hornik. An update to
I was able to reproduce this bug. After some investigating, it's clearly
localized to gztell (a zlib function), and the z_off_t type. However,
there may be a broader cross-compiling problem. I don't know what
procedure Brandon used to compile the 32 bit version (I used the gcc
-m32 flag), but we sh
You used file to open "ex.gz", which ought to work, but relies on do_url
to automatically detect that the file is a gzip file. It's a long shot,
but you could try to verify that the file is a valid gzip file (R checks
that the first two bytes == "\x1f\x8b") and try the gzfile function on
the 32 bit
else if(!isRawx) SET_STRING_ELT(ans, i, NA_STRING);
+ else {
+ nout = cbuff.bufsize - 1 - outb;
+ UNPROTECT(1);
+ PROTECT(ans = allocVector(RAWSXP, nout));
+ memcpy(RAW(ans), cbuff.data, nout);
+ }
}
Riconv_close(obj);
R_FreeStringBu
R community,
As you may know, R's iconv doesn't work well converting to and from
encodings that allow embedded nulls. For example
> iconv("foo", to="UTF-16")
Error in iconv("foo", to = "UTF-16") :
embedded nul in string: '\xff\xfef\0o\0o\0'
However, I don't believe embedded nulls are at issue
n\"\'")
}
}
walkCode(ee, w)
}
}
}
walker <- makeCodeWalker(call=walkerCall, leaf=function(e,w){})
exprs <- parse("SCRIPT.R")
for( expr in exprs )
walkCode(expr,walker)
I'm a little surprised this there isn't a 'sandbox&
This is odd, I think it may have something to do with this
> f <- interaction(list(iris[,1], iris[,2]))
> f[16]
[1]
> unclass(f)[16]
[1] 785
> nlevels(f)
[1] 781
Maybe do_split dereferencing beyond allocated memory?
> interaction(list(iris[,1], iris[,2]), sep="-")
does not produce at index 16
All,
Just an update on the tty (formerly serial) connection patch I'm working
on. Simon pointed out that a tty connection needed blocking capability
and flow control. These features are added in this patch, with
additional documentation (?tty). Hardware flow control (CTS/RTS, CD,
etc.) would be m
uncan Murdoch wrote:
>
> > On 27/04/2010 8:32 AM, Matt Shotwell wrote:
> >> Simon,
> >> Thanks for reviewing it! All the modified files are under the GPL
> >> version 2 (except the configure script). According to the GPLv2, I am
> >> granted permission to
ent the wheel (under the hood). Also that would give you
> many aspects for free since you could inherit from file at the R level.
>
> I hope it helps. I was thinking about the above but in the end decided to
> back off once I was looking at the flood of parameters you have to take
All,
Our discussion of serial interfaces last week motivated me to dig into
the R connections API. In short, I spent the weekend writing a patch for
version 2.11.0 that adds a serial connection. I posted a blog entry that
gives instructions for applying, configuring, and compiling the patched
ver
be obvious to Lapack designers, but not me)
> >
> > My modest Googleing turned up very little unique material (as is typical
> > with BLAS/Lapack/Linpack queries). Hence, I am writing the r-devel list
> > partly to document the solution I've come up with, but mainly
31 matches
Mail list logo