Displaying 6 results from an estimated 6 matches for "showargs".
2012 Sep 09
0
Different behavior of the "showArgs" example (R extension manual) between gcc and Visual C++ compiled code
Hi,
I am trying to implement on a Win7 box the showArgs example of section 5.10.2 "Calling .External" of the R extension manual. I am using interchangeably gcc (RTools) and Visual C++ (via Makefile.win) to build a package. I get a couple of runtime oddities when the dll compiled with Visual C++. I'd value comments, observations and tips fr...
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 "R Language Definition" that I found out
about pairlist(), as needed.
The final example:
showArgs<...
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()
2008 Apr 06
0
manual 'Writing R Extensions': bug in example
Hi,
I would like to report a small bug in one of the code examples given in
the 'Writing R extensions' manual. Section 5.9.2 ("Calling .External")
defines the function "showArgs" in order to demonstrate how to access in
C the pair-listed arguments passed by .External. The function aims at
printing echoing all passed arguments to the screen but only prints
every second argument.
The loop to go through the pair list starts as follows
args = CDR(args); /* skip ...
2008 Aug 22
2
Sending "..." to a C external
...R Extensions" but there's not a
lot of detail on this issue.
I want to write a (very simple really) C external that will be able to take
"..." as an argument.
(It's for optimizing a function that may have several parameters besides the
ones being optimized.)
I got the "showArgs" code (from R-exts) to compile and install, but it only
gives me error messages when I run it. I think I'm supposed to pass it
different arguments from what I'm doing, but I have no idea which ones.
What exactly are CAR, CDR, and CADR anyway? Why did the R development team
choose this...
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