similar to: change function's formals default values

Displaying 20 results from an estimated 2000 matches similar to: "change function's formals default values"

2006 Feb 16
0
Calling R functions from C and setting function's formal list values
Hello, I am writing an extension that requires the user to pass a function into the C code. The function returns a covariance matrix. The user defines an arbitrary set of parameters as the function's arguments, which are used to construct this covariance matrix. Within the C code these parameters and hence covariance matrix are iteratively updated. The user's function might look like
2006 Jan 05
3
Using STL containers in R/C++
Hi All, I am in the process of writing an R extension in c++ and am using several STL containers (e.g., vector<double>, map<int, double>, multimap<int, double>). I make sure to clear all these containers at the end of the .Call. Everything compiles and runs just fine, but I'm a bit worried since I haven't found any other packages that use STL. So, my question: is it
2009 Sep 16
2
I want to get a reference to this time series object
I'm trying to get a reference to this object in C SWX.RET[1:6,c("SBI,"SPI","SII")] While i am able to access and use a plain SWX.RET object, I'm getting confused on how to create an object with the array subscripts like above. Here is what I tried to do. It doesn't work because "[" is obviously not an operation or function on SWX.RET. So how do I
2006 Oct 22
1
Getting hold of a package's environment from C code
Hi, I have a package where I'm calling an R function (say "foo") from C code. "foo" is in the same package, but is not exported. I construct the call using lang1(install("foo")), but to eval it I need the package's environment. Is there a way to do this? Passing the correct environment through .Call() is not an option. Right now, I'm getting the
2007 Nov 09
1
CentOS 5: comment swap in fstab
I'm not sure what gave me this idea, but I decided to comment out the swap partition in /etc/fstab and reboot my laptop. I did not run swapoff directly at any time. I'm running more things now than I would ever dream of to hammer my 500MB of memory, but I still notice NO slowdown. This is the best desktop experience I've ever had for any OS on any hardware! Here's the first 12
2006 Feb 24
2
Rcpp, best method for linking to
Dear all, After a bit of reading I came across the Rcpp example package. There are a few classes that I would like to use and I am not sure how best to include them in my own package. Is it best to compile it as an independent library and link to it? Or is there some way to `require` it for my own package? Re-write using the code as an example (unsure how best to do this at this moment, as
2010 Mar 22
0
[LLVMdev] Summer of Code ideas
On Mar 22, 2010, at 1:27 PM, Charles Davis wrote: > Hi, > > I intend to participate in Google's Summer of Code this year, so I'd > like to bounce another idea around to see what you guys think. (I posted > a similar message to cfe-dev just now.) Be warned: this will shock you. > It may even horrify you. > > 1. Implement a 16-bit x86 backend. (*Chris recoils in
2010 Mar 22
6
[LLVMdev] Summer of Code ideas
Hi, I intend to participate in Google's Summer of Code this year, so I'd like to bounce another idea around to see what you guys think. (I posted a similar message to cfe-dev just now.) Be warned: this will shock you. It may even horrify you. 1. Implement a 16-bit x86 backend. (*Chris recoils in horror*) Yeah, I know 16-bit x86 is dead, but I find it interesting for historical purposes
2009 Sep 29
3
How do I access class slots from C?
Hi I'm trying to implement something similar to the following R snippet using C. I seem to have hit the wall on accessing class slots using C. library(fPortfolio) lppData <- 100 * LPP2005.RET[, 1:6] ewSpec <- portfolioSpec() nAssets <- ncol(lppData) setWeights(ewSpec) <- rep(1/nAssets, times = nAssets) ewPortfolio <- feasiblePortfolio( data = lppData, spec = ewSpec,
2008 Apr 03
2
g++ 4.3 warning: deprecated conversion from string constant to ‘char*’
Hello, I've noticed that with g++ 4.3 I get the following "warning: deprecated conversion from string constant to ?char*?" when I call e.g., Rprintf("Hello world"); or when I try to define a const char e.g., char lower = 'L'; I am wrapping the c++ code in extern "C" {}. This seems to be something new with g++ 4.3, because the same code compiled
2017 Nov 09
2
check does not check that package examples remove tempdir()
I think recreating tempdir() is ok in an emergency situation, but package code should not be removing tempdir() - it may contain important information. Bill Dunlap TIBCO Software wdunlap tibco.com On Wed, Nov 8, 2017 at 4:55 PM, Henrik Bengtsson <henrik.bengtsson at gmail.com > wrote: > Related to this problem - from R-devel NEWS >
2006 Sep 21
2
4.4 kickstart issues
Greetings all, I'm trying to create a CentOS 4.4 kickstart CD (not a network install), duplicating what I've done for Fedora Core 3. I am having a cirular dependency for initscripts, which causes initscripts not to be installed (no /etc/inittab when the boot gets to INIT) The cascade is: initscripts-7.39.25.EL-1.centos4 requires /sbin/nash /sbin/nash is in mkinitrd-4.2.1.8-1
2009 Aug 19
2
lmer with random slopes for 2 or more first-level factors?
I have data from a design in which items are completely nested within subjects. Subject is the only second-level factor, but I have multiple first-level factors (IVs). Say there are 2 such independent variables that I am interested in. What is the proper syntax to fit a mixed-effects model with a by-subject random intercept, and by-subject random slopes for both the 2 IVs? I can
2013 May 17
1
Heroku - Event_Calendar - preventing assets precompile
My App is hosted currently on Heroku, and I attempted to use elevation/event_calendar <https://github.com/elevation/event_calendar> to display events because it supported multiday events. I had it working locally and looking great, but when I tried to push it to the server, it caused error during the assest precompile. This in turn brought the whole site down. I had to roll back a few
2003 Nov 20
2
Cisco to use * as a gateway?
I'm not sure if I am wording this correctly, but I'll try. I have a Cisco 2621 w/ a couple FXO and FXS ports. I have a couple cheap analog phones plugged into the FXS ports. I am able to get * to ring those phones when a call comes in, but I cannot get the phones to dial out. I guess it's all syntax that I'm doing wrong. Does someone have a couple small snip-its to accomplish
2007 Aug 29
2
understanding queues
Hello, I feel like I understand how the dial plan works pretty well with one exception. It seems like queues are using the stdexen macro to ring the agents/extensions. Is this normal? Is there anyway to configure this differently? I realize this is a newbie question, but I have searched google/archives and haven't been able to find the answer. Thanks, Elliot --------------
2007 Feb 06
1
ANOVA Table for Full Linear Model?
Hello, I have spent a good deal of time searching for an answer to this but have come up empty-handed; I apologize if I missed something that is common knowledge. I am trying to figure out how to get an ANOVA table that shows the sum of squares. degrees of freedom, etc, for the full model versus the error (aka residuals). Here is an example of the kind of table I'd like to get:
2005 Jul 27
2
New to CentOS, and wondering about application availability
Centos Mailing List, Hello. I have just recently installed CentOS on my home computer, and just joined this mailing list. I have a lot of questions so I will have quite a few postings in the next few days. I was using Fedora Core 4 for a few weeks, but it was unstable and had trouble reading some of my DVD drives and other issues. So, I decided to switch to another distribution. I
2002 Aug 27
1
rsync problem in systemimager
Hello, I'm working on the oscar-1.3 release with my Linux Itanium's cluster to test cloning process via systemimager. After having succeeded to boot my client node via the network, when running the following script : /var/lib/systemimager/scripts/ced1.sh rsync is able to get small files (e.g : mkdosfs). However, when the script tries to rsync the whole oscar image in the following way :
2004 Jul 29
5
Astricon Conference Call?????????
I know this is probably way out there but............ Would it be possible to set up a (Asterisk based) conference call (per se) with the presentations at the upcoming Astricon conference via IAXtel (or something similar) so that people who are not able to attend could join a Meetme conference (listen only) and listen to the content. There maybe bandwidth issues but this would certainly be an