similar to: a question on R optimization functions

Displaying 20 results from an estimated 9000 matches similar to: "a question on R optimization functions"

2011 Jul 29
2
R DDD fortran
Is there an easy way to compile a packages's fortran so that it has the information for ddd or gdb to follow the lines of the code? I seem to remember seeing something about this, but I cannot find it in Writing R Extensions. (I see about Valgrind, debugging a segfault, and some other tricks, but what I really want is to follow the fortran logic.) Thanks for any pointers, Paul
2010 Mar 05
2
CRAN nearly down?
Is CRAN having trouble or is it just me? (The web interface is very slow and install.packages() is timing out and giving me "service not available"). Paul ==================================================================================== La version française suit le texte anglais. ------------------------------------------------------------------------------------ This email
2011 Feb 03
1
S3 method for S4 object
I am trying to extend an S3 method to work with an S4 object as well as the S3 objects it works with, but UseMethod does not seem to recognize the S4 class and dispatches to the default method. Is this to be expected or should I be looking for an error in my code? If it is not an error in my code, is there an easy way to do this, or do I have to convert the generic to S4 and then make those
2010 Apr 19
1
utf8.def
I am trying to check my packages with R-rc and latex is failing to find utf8.def. I presume my latex installation is defective or too old, or is this file distributed with R and I just don't have a path set correctly? Paul ______________ * checking PDF version of manual ... WARNING LaTeX errors when creating PDF version. This typically indicates Rd problems. LaTeX errors found: !
2009 Oct 15
1
R RSS feed
I was trying to subscribe to an RSS feed from <http://developer.r-project.org/RSSfeeds.html> but IE chokes on DTDs and Firefox also has trouble with this feed. (I'm not sure if it has trouble with DTDs in general.) I went to one of our web developers to see what I should use to read the feed, and he pointed out that the mix of RSS 2.00 and rss-0.91 looks like a mistake: <!--
2008 Mar 14
1
Buggy Kinderman-Ramage (PR#2846)
Unfortunately, RNGkind is buggy. It will not generate warnings except the full name "Buggy Kinderman-Ramage" is supplied for normal.kind. match.arg is supposed to be called before "==" comparison. ======================================== Shengqiao Li Research Associate The Department of Statistics PO Box 6330 West Virginia University Morgantown, WV 26506-6330
2009 Oct 13
1
beta build problem
I am having the following problem building R-beta_2009-10-12_r50045.tar.gz on Ubuntu 9.04 - the Jaunty Jackalope Paul ________ ... make[2]: Entering directory `/home/paul/toolchain/R/R-beta/src/library/Recommended' begin installing recommended package boot gzip: invalid option -- 'x' Try `gzip --help' for more information. tar: This does not look like a tar archive
2009 Jul 27
2
noweb and R
I'm working on the next release of coxme (ready to start some testing), and have written major chunks of it using noweb -- very similar to Sweave except I'm generating code and documentation for the code rather than vingetes. The question: I have directory with .Rnw objects and a Makefile therein that generates most of the .R files. I don't see any guidance in the documentation
2011 May 06
3
fortan common block
Is it possible in R to call a fortran routine that sets variables in a common block and expect the values to persist when a call is made from R to a second routine that uses the common block? If not (as I suspect), is it possible to use a common block in a group of routines that are used together, for as long the routines do not return to R? Paul
2011 Apr 04
1
simulating a VARXls model using dse
Hello, Using the dse package I have estimated a VAR model using estVARXls(). I can perform forecasts using forecast() with no problems, but when I try to use simulate() with the same model, I get the following error: Error in diag(Cov, p) : 'nrow' or 'ncol' cannot be specified when 'x' is a matrix Can anyone shed some light on the meaning of this error? How can I
2011 Sep 14
1
Building R package with precompiled shared library
Dear R users, we are trying to build a R package that includes a precompiled shared library, let's say mylib.so. We created the skeleton of the package and we moved the mylib.so file into the libs folder that we created at the same level of the folders man and R. Moreover we created the file NAMESPACE and we added the line useDynLib(mylib, .registration=TRUE). The building step seems to work
2011 Nov 22
1
Varma models in the dse package
Hi, I tried to run the VARMA model in the dse package. I specified a model: > arma A(L) = 1+0.244L1 0+0.05L1 0-0.325L1 1-0.234L1 B(L) = 1-0.277L1 0+0.211L1 0-0.206L1 1+0.238L1 and have a TSdata object: > dfdata output data: Series 1 Series 2 1 "difex2" "difem2" but I get this warning message: > estMaxLik(arma, dfdata) Error in
2010 May 14
1
S4 default/missing args
I am trying to understand the missing vs default value for an argument to an S4 method. (I'm not sure if this is a bug or my confusion.) In S3 I can specify a default value for an argument and then both check if the argument was missing in the call, and use it because it takes on the default value. I do not seem to be able to do that in S4 as shown by this simplified example:
2009 Jul 13
2
dse model setup help
I tried to specify a model in dse1 but something isn't right. Anybody have any tips? model<-SS(F=f,G=g,H=h,Q=q,z0=z,P0=p) Error in locateSS(model$R, constants$R, "R", p, p, plist) : The dimension of something in the SS model structure is bad. > dim(f) [1] 5 5 > dim(g) [1] 5 1 > dim(h) [1] 1 5 > dim(q) [1] 5 5 > dim(z) [1] 5 1 > dim(p) [1] 5 5 thanks, Bob
2011 Sep 19
1
using R as SHELL in gnu make
I am intrigued by the possibility of using R as the SHELL in a (Gnu) makefile (instead of /bin/sh). (c.f. http://www.gnu.org/software/make/manual/make.html#Choosing-the-Shell) Well, rather, I would like the makefile's SHELL to be a command which communicated with an R process. The makefile targets/prerequistes would, as always, be OS files, which would be written/read using standard R file
2008 Nov 02
2
R CMD check with Matlab and perl?
Hi, All: How might one test Matlab and perl code during "R CMD check"? I ask for two reasons: First, the "fda" package exists in both R and Matlab, and it would help if we could run test examples in Matlab as part of "R CMD check". I tried "R.matlab", but could not get it to work in that context. Second, I have professional
2008 Feb 14
3
Vector binding on harddisk
Hi all, Using big vectors (more than 4GB) is unfortunately not possible under Windows or other OS's if not enough RAM exists. Could it be possible to implement an a new data type in R, like a vector, but instead holding the information in memory, the data lies on an file. If data is accessed, the data type vector get the information automatically from the file. There is a package out there
2010 Jul 07
4
constrained optimization
Dear list, The task view on optimization does not reference a package for non linear constrained optimization problems. Stefan Theussl told me to look at the Rsolnp package, but unfortunately it is not very clear what method is R ported. (The authors ported the matlab code of Yinyu Ye http://www.stanford.edu/~yyye/ <http://www.stanford.edu/%7Eyyye/>) Currently I'm looking for an
2010 Sep 08
1
winbuilder warnings and errors
Hello, I have been developing a package for phylogenetic analysis which I plan to submit to CRAN soon. It passes R CMD check with no warnings on my linux and Mac OS X machines. I don't have much experience with Windows and have been using the win-builder service to see how the package compiles on Windows. (Thank you for this service, Uwe, it is a huge time saver for me!) I have tried
2010 Aug 24
3
How to obtain seed after generating random number?
Dear all, I was doing an experiment to disprove some theory therefore performing lot of random simulation. Goal is to show the audience that although something has very rare chance to occur but it doesn't mean that event would be impossible. In this case after getting that rare event I need to show that same scenario for multiple times to explain other audience. Hence I need to somehow