Displaying 11 results from an estimated 11 matches for "9akdm9".
2010 Apr 30
2
RInside & child threads
Hi Folks,
I am creating a multi-threaded C++ application that initializes RInside in
one of the child thread.
I would also like to access support interfaces like Rcpp::Environment in the
remaining child threads, so that I could access any "R" function associated
with the
environment initialized.
When I run my program, I always get "C Stack limit too huge" errors.
I looked
2010 Apr 28
2
JRI API: sourcing from Java String
Hi all,
I have been using 'source(filename)' to load R code from a file
object. However, now I have a special case where I don't have a file
since I am loading an R script from a Jar file. I would like to avoid
creating temporary files. Is there a way to use the 'source' command
with a Java String? Are there any other, better ways to do that?
Ralf
2010 May 08
1
Error in RImageJ
Hello everybody,
I'm running R under Mac OS 10.6.3 on a MacBook 2.16 GHz Intel Core 2 Duo. I've recently installed R 2.11.0 and the RImageJ library v. 0.1-142. When trying to follow the example given in the package manual and I get the following error:
download.file( "http://www.google.fr/intl/en_en/images/logo.gif", dest = "google.gif" )
trying URL
2010 May 11
2
make: Nothing to be done for `all'.
Hi,
I just bought new macbook pro 10.6.3. I am trying to use some old c code
that used to work. I tried to recompile the code. In the directory with
code I used R CMD SHLIB hello.c and get the error
make: Nothing to be done for `all'.
I have tried reinstalling Xcode and R but I am still having this problem.
Any suggestions?
--
View this message in context:
2010 Apr 22
2
RUnit bug?
There appears to be a bug in RUnit.
Given a testsuite testsuite.math, say, when I run:
runTestSuite(testsuite.math)
this works fine, provided there are no extraneous files in the
unit test subdirectory.
But if there are any Emacs temp files (with names that
end with '~') then runTestSuite gets confused and tries to
run functions from the temp files as well.
[[alternative HTML version
2010 Apr 27
2
Resolving functions using R's namespace mechanism can double runtime
It appears that the runtime for an R script can more than double if a few
references to a function foo() are replaced by more explict references
of the form pkgname::foo().
The more explicit references are of course required when two
loaded packages define the same function.
I can understand why use of this mechanism is not free in an
interpreted environment like R, but the cost seems rather
2010 May 20
1
Use of R and Rscript in configure/Makevars in packages
We have seen problems with a number of packages which use R/Rscript to
run R code in configure or makefiles.
(a) You must give a full path: there need be no version of R in the
path, and if there is it might not be the version/build of R under
which package installation is being done. So the general form is to
use
${R_HOME}/bin/R
to select the right version. And since ${R_HOME} might
2010 Apr 13
3
Inline Package: void vs return type functions
Dear all,
After having a look at the "inline" package and also going through the
"Rcpp" package which is tighty related to it, it came to me this question:
1) my C/ C++ code has a return type (let say a double[][] or a user define
class)
2) I am working with an extensive library built by someone else and I don't
have the time/knowledge to change it by means of working
2010 Apr 21
2
suggestion how to use memcpy in duplicate.c
>From copyVector in duplicate.c :
void copyVector(SEXP s, SEXP t)
{
int i, ns, nt;
nt = LENGTH(t);
ns = LENGTH(s);
switch (TYPEOF(s)) {
...
case INTSXP:
for (i = 0; i < ns; i++)
INTEGER(s)[i] = INTEGER(t)[i % nt];
break;
...
could that be replaced with :
case INTSXP:
for (i=0; i<ns/nt; i++)
memcpy((char *)DATAPTR(s)+i*nt*sizeof(int),
2010 Apr 29
2
Split a vector by NA's - is there a better solution then a loop ?
Hi all,
I would like to have a function like this:
split.vec.by.NA <- function(x)
That takes a vector like this:
x <- c(2,1,2,NA,1,1,2,NA,4,5,2,3)
And returns a list of length of 3, each element of the list is the relevant
segmented vector, like this:
$`1`
[1] 2 1 2
$`2`
[1] 1 1 2
$`3`
[1] 4 5 2 3
I found how to do it with a loop, but wondered if there is some smarter
(vectorized) way
2010 Apr 17
1
Error message when trying to install Rcmdr
I am trying to install Rcmdr on my ubuntu machine, but keep getting the
following error messages:
ERROR: failed to lock directory
?/home/thedoctor/R/i486-pc-linux-gnu-library/2.10? for modifying
Try removing ?/home/thedoctor/R/i486-pc-linux-gnu-library/2.10/00LOCK?
ERROR: failed to lock directory
?/home/thedoctor/R/i486-pc-linux-gnu-library/2.10? for modifying
Try removing