Displaying 20 results from an estimated 3000 matches similar to: "Sending "..." to a C external"
2006 Aug 29
1
list and pairlist in "Writing R Extensions" (PR#9185)
Full_Name: Glen Herrmannsfeldt
Version: 2.2.1
OS: Linux
Submission from: (NULL) (128.95.113.77)
Following the discussion in "Writing R Extensions" in section 5.8.2, there
is no indication that showArgs expects a pairlist() instead of a list().
I was trying
.Call("showArgs",list(one=1,two=2,three=3))
for example, and getting many core dumps.
It wasn't until reading
1998 Jun 04
1
aov
R developers,
Last week I asked several questions which I think I can now answer
myself in large part.
>
> Q 1) Is aov supposed to avoid qr decomposition and matrix inversion?
> In S it is claimed to be faster than lm() for large datasets. Is
> that due to avoidance of qr()?
> (My main goal is to get the Error strata working.)
My use of matrix
2009 Jan 21
2
encountering difficulty asking R to manipulate the correct columns in Expression Set class (object 4). (PR#13464)
Full_Name: Guy W. Tillinghast
Version: 2.8.0
OS: Windows XP professional
Submission from: (NULL) (24.248.24.3)
I am encountering difficulty asking R to manipulate the correct columns in
Expression Set class (object 4).
I download the ALL data with:
library(golubEsets)
data(Golub_Merge)
Note, the data has the samples not in order. This is not R's fault (at least
not that I can tell):
>
2011 Apr 06
1
Use of the dot.dot.dot option in functions.
Hi R users:
I try this code, where "fun" is a parameter of a random generating
function name, and I pretend to use "..." parameter to pass the parameters
of different random generating functions.
What am I doing wrong?
f1<-function(nsim=20,n=10,fun=rnorm,...){
vp<-replicate(nsim,t.test(fun(n,...),fun(n,...))$p.value)
return(vp)
}
This works!
f1()
2006 Sep 21
3
Adding .R to source file keeps R from reading it?
Hi,
I'm updating the LMGene package from Bioconductor. "Writing R Extensions"
suggests
that all source files (the ones in the R directory) have a .R ending, so I
added it to the (one) source file.
The next time I installed and ran R, R didn't understand any of the
functions.
I tried various things and eventually went back to the file and dropped the
.R ending, installed, ran R.
2008 Aug 14
3
extending the derivs table/fools rushing in
I added "plogis" to the derivative table in the
development version of R; the patch against yesterday's
R-devel src/deriv/main.c is available at
http://www.zoology.ufl.edu/bolker/deriv_patch.txt .
I pretty much followed the framework of the other symbols;
here was my incantation
- } else if (CAR(expr) == PlogisSymbol) {
- ans = simplify(TimesSymbol,
-
2008 Apr 04
2
scripting rsync ssh port issue
Skipped content of type multipart/alternative-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 3088 bytes
Desc: not available
Url : http://lists.samba.org/archive/rsync/attachments/20080404/a87f68ba/attachment.gif
2009 Nov 10
1
standardGeneric seems slow; any way to get around it?
Hi,
I'm running some routines with standard matrix operations like solve() and
diag().
When I do a profile, the lead item under total time is standardGeneric().
Furthermore, solve() and diag() have much greater total time than self time.
???
I assume there is some time-consuming decision going on in the usual
functions;
is there any way to avoid that and go straight to the calculaions?
Thanks
2006 Oct 12
3
Rcmd not working on Windows
I changed the path to include C:\Program Files\R\R-2.3.1\bin, but Rcmd check
[package] just returns an error:
'Rcmd' is not recognized as an internal or external command, operable
program or batch file.
Any ideas? I want to be able to compile this package on Windows.
[[alternative HTML version deleted]]
2013 Dec 03
2
[LLVMdev] code-generating constant strings
Hi, everyone!
I have maybe very naive question, but nontheless.
I'm experimenting with Kaleidoscope tutorial and I want to morph it into
something similar to McCarthy's initial Lisp.
For that, I need to implement symbols, which I thought I should
implement as pointers to structures, and those
structures would contain at least one field, which would be symbol's name.
So, here's a
2008 Apr 09
3
LSODA not accurate when RK4 is; what's going on?
I'm solving the differential equation dy/dx = xy-1 with y(0) = sqrt(pi/2).
This can be used in computing the tail of the normal distribution.
(The actual solution is y(x) = exp(x^2/2) * Integral_x_inf {exp(-t^2/2) dt}
= Integral_0_inf {exp (-xt - t^2/2) dt}. For large x, y ~ 1/x, starting
around x~2.)
I'm testing both lsoda and rk4 from the package odesolve.
rk4 is accurate using step
2008 Feb 27
1
Warnings generated by log2()/log10() are really large/takes a long time to display
x <- rnorm(1e6);
y <- log(x); # or logb(x) or log1p(x)
w <- warnings();
print(object.size(w));
## [1] 480
str(w);
$ NaNs produced: language log(x)
- attr(*, "dots")= list()
- attr(*, "class")= chr "warnings"
y <- log2(x); # or log10(x)
w <- warnings();
print(object.size(w));
## [1] 8000536
str(w);
## List of 1
## $ NaNs produced: language
2010 Jun 19
1
more powerful iconv
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 here, but rather
that R's iconv
2009 Feb 15
2
Passing environments: why doesn't this work???
This is a trivial example I set up to see if I could pass an environment and
use the variables in it
(this is for a function that will be called many times and might need to use
a lot of variables that
won't be changing, so it seemed more sensible to use an environment).
Here's the code:
#########################
#The outer function
run.internal.env <- function(x) {
in.env <-
2006 Feb 22
2
How can I see how %*% is implemented?
I would like to see how the matrix multiplication operator %*% is implemented (because I want to see which external Fortran/C routines are used). How can I do so?
Best
S??ren
2011 Mar 23
2
Standalone C++ application for processing R parser output(SEXP)
Hi All,
I am trying to write a source-to-source compiler for R. I am trying to
leverage the R parser code for the purpose. I am trying to transform the
SEXP returned from the parser into an AST for our own Ruby embedded Domain
specific language.
I tried using R CMD SHBIN to compile a C function that parses arbitrary R
expressions. But I think, the generated .so file can be used from within R
and
2009 Dec 02
1
Calling R (GNU R) functions from Common Lisp, how?
Hi Lisp users,
I'm a user of both Common Lisp and R (GNU R).
I found R has a rich collection of statistical and numerical
computation functions, while it is not as extensible as Lisp (Common
Lisp).
I considered Lisp-Stat but its only implementation is not in the
usuall Common Lisp, and the available functions in CRAN are far richer
than Lisp-Stat currently has.
I want to know if there is
2013 Dec 03
0
[LLVMdev] Fwd: code-generating constant strings
For some reason the mail didn't got through the first time, so sending
it again.
-------- Original Message --------
Subject: code-generating constant strings
Date: Tue, 03 Dec 2013 01:56:11 +0100
From: Alexander Popolitov <popolit at gmail.com>
To: llvmdev at cs.uiuc.edu.
Hi, everyone!
I have maybe very naive question, but nontheless.
I'm experimenting with Kaleidoscope
2012 May 23
2
Expected behaviour of is.unsorted?
Hi,
I've read ?is.unsorted and searched. Have found a few items but nothing
close, yet. Is the following expected?
> is.unsorted(data.frame(1:2))
[1] FALSE
> is.unsorted(data.frame(2:1))
[1] FALSE
> is.unsorted(data.frame(1:2,3:4))
[1] TRUE
> is.unsorted(data.frame(2:1,4:3))
[1] TRUE
IIUC, is.unsorted is intended for atomic vectors only (description of x in
?is.unsorted). Indeed
2008 Jul 23
1
Calling LISP programs in R
I have written some programs in Common Lisp and I have been using SAS to pipe
those programs to my lisp compiler in batch mode by using the %xlog and
%xlst SAS commands. I wonder if there is in R a similar way to pipe commands
to LISP so that all my work would be concentrated in R even when I have to
call a LISP program? I have looked at the foreign library but this seems to
adjust data types not