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 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
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 <-
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
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
2008 Feb 05
6
[LLVMdev] 2.2 garbage collector questions
Scott Michel <scottm <at> rushg.aero.org> writes:
> Out of curiousity, for which CL implementation is this targeted? sbcl?
> Or something you're rolling?
I wanted to roll out my own lisp, and maybe use some library code from existing
lisps (think of loop or format). Adding an LLVM backend to an existing lisp
implementation is a nice idea, but currently not planned.
>
2007 Sep 06
3
Lisp-like primitives in R
I mainly program in Common Lisp and use R for statistical analysis.
While in R I miss the power and ease of use of Lisp, especially its many
primitives such as find, member, cond, and (perhaps a bridge too far)
loop.
Has anyone created a package that includes R analogs to a subset of Lisp
functions?
Chris Elsaesser, PhD
Principal Scientist, Machine Learning
SPADAC Inc.
7921 Jones
2020 Mar 17
3
new bquote feature splice does not address a common LISP @ use case?
Dear R-devel,
There is a new feature in R-devel, which explicitly refers to LISP @
operator for splicing.
> The backquote function bquote() has a new argument splice to enable splicing a computed list of values into an expression, like ,@ in LISP's backquote.
Although the most upvoted SO question asking for exactly LISP's @
functionality in R doesn't seems to be addressed by this
2005 Oct 03
2
access to R parse tree for Lisp-style macros?
R folks, I'm curious about possible support for Lisp-style macros in
R. I'm aware of the "defmacro" support for S-Plus and R discussed
here:
http://www.biostat.wustl.edu/archives/html/s-news/2002-10/msg00064.html
but that's really just a syntactic short-cut to the run-time use of
substitute() and eval(), which you could manually put into a function
yourself if you cared
2008 Dec 08
4
R and Scheme
I've read in many places that R semantics are based on Scheme semantics. As
a long-time Lisp user and implementor, I've tried to make this more precise,
and this is what I've found so far. I've excluded trivial things that
aren't basic semantic issues: support for arbitrary-precision integers;
subscripting; general style; etc. I would appreciate corrections or
additions from
2004 Feb 12
1
Porting let* from Common LISP to R
In porting some Common LISP code to R, I am trying to found out whether special
care must be taken for the let* function. In Common LISP, "the let* block
is like
let except it is guaranteed to evaluate the initialization of its local
variables in sequentially nested scopes, i.e. it provides an order to the
binding and visibility of preceding variables.".
I have included the recursive