Re: [Rd] build time dependency

2009-09-29 Thread Romain Francois
On 09/29/2009 04:36 AM, Seth Falcon wrote: On Mon, Sep 28, 2009 at 11:25 AM, Romain Francois romain.franc...@dbmail.com wrote: Hi Uwe, I think you are supposed to do this kind of sequence: R CMD roxygen yourRoxygenablePackage R CMD build yourRoxygenablePackage_roxygen ... but I don't like

Re: [Rd] Downloading R-2.10.0

2009-09-29 Thread Uwe Ligges
Duncan is travelling and may not yet have updated his scripts to make alpha versions available (rather than R-devel), please be patient. Best, Uwe Ligges Gabor Grothendieck wrote: For Windows, this page http://cran.r-project.org/bin/windows/base/ gives a link to download - R 2.9.2 -

Re: [Rd] build time dependency

2009-09-29 Thread Uwe Ligges
Romain Francois wrote: On 09/29/2009 04:36 AM, Seth Falcon wrote: On Mon, Sep 28, 2009 at 11:25 AM, Romain Francois romain.franc...@dbmail.com wrote: Hi Uwe, I think you are supposed to do this kind of sequence: R CMD roxygen yourRoxygenablePackage R CMD build

[Rd] Probability of data values form empirical distribution

2009-09-29 Thread Lina Rusyte
Hello,   Could someone help me please and to tell how to get the probability from empirical distribution (not parametric) for each data value (R function). For example, for normal distribution there is such a function like:   “pnorm(q, mean = 0, sd = 1, lower.tail = TRUE, log.p = FALSE)”  

Re: [Rd] Probability of data values form empirical distribution

2009-09-29 Thread John Nolan
The function ecdf(x) computes the empirical cdf from data in the vector x. You can plot it with plot(ecdf(x)), or compute the emp. cdf at new values, e.g. my.cdf - ecdf(x) my.cdf( 0:3 ) # computes the emp. cdf at 0,1,2,3 John

[Rd] How do I access class slots from C?

2009-09-29 Thread Abhijit Bera
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 =

[Rd] Problem installing RMAGEML package

2009-09-29 Thread Mamun Rashid
Hi all, I ran in to a problem while trying to install RMAGEML package. /usr/bin/ld: cannot find -ljava . (please look at the bottom for details of the error) I have set the following in ~/.bashrc file. export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64 export

Re: [Rd] How do I access class slots from C?

2009-09-29 Thread Romain Francois
Hi, There is a GET_SLOT macro in Rdefines.h Cheers, Romain On 09/29/2009 04:28 PM, Abhijit Bera wrote: 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 *

Re: [Rd] How do I access class slots from C?

2009-09-29 Thread Simon Urbanek
Abhijit, as for your subject - it's GET_SLOT, but why don't you just use ParseVector and eval instead of hand- crafting C code that calls the evaluator? That latter is way more error prone and the error-handling is a nightmare (your current code is inefficient anyway so you don't gain

Re: [Rd] How do I access class slots from C?

2009-09-29 Thread Martin Morgan
Simon Urbanek wrote: Abhijit, as for your subject - it's GET_SLOT, but why don't you just use ParseVector and eval instead of hand-crafting C code that calls the evaluator? That latter is way more error prone and the error-handling is a nightmare (your current code is inefficient anyway so

Re: [Rd] Downloading R-2.10.0

2009-09-29 Thread Duncan Murdoch
On 9/29/2009 4:03 AM, Uwe Ligges wrote: Duncan is travelling and may not yet have updated his scripts to make alpha versions available (rather than R-devel), please be patient. I'm back now, but stuck in a meeting all afternoon. I should be able to get the builds started tonight, but there

Re: [Rd] model.matrix troubles with AlgDesign

2009-09-29 Thread Ulrike Groemping
Hi Heather, thanks, I would be able to add the variable y - 1:nrow(aus), I would even be able to omit these. What concerns me is the fact that the presence of function model.matrix.formula in package AlgDesign will stop model.matrix from working as expected in further situations that I have

Re: [Rd] How do I access class slots from C?

2009-09-29 Thread Simon Urbanek
MArtin, On Sep 29, 2009, at 12:17 , Martin Morgan wrote: Simon Urbanek wrote: Abhijit, as for your subject - it's GET_SLOT, but why don't you just use ParseVector and eval instead of hand- crafting C code that calls the evaluator? That latter is way more error prone and the error-handling

Re: [Rd] enabling core dumps

2009-09-29 Thread pleydell
... If I launch gdb this way I don't have any means to navigate through previously executed gdb lines using M-p and M-n, but following a (gdb) run or (gdb) continue I can use M-p and M-n to recall previous R commands If I launch gdb in other ways M-p and M-n function as expected. I suppose

[Rd] Problems connecting to httpd help server with some browsers

2009-09-29 Thread Thomas Friedrichsmeier
Hello, sorry to provide only very little testing, but with the release date nearing, I thought it better to report this quickly than to wait for an uncertain period until I find more time. I'm observing strange problems connecting to the httpd help server with konqueror (KDE 4.3.1): options

[Rd] unable to load shared library (Symbol not found: _PQbackendPID)

2009-09-29 Thread Jeff Hamann
I can't get the RPostgreSQL library to load on OSX and have no idea where it's going wrong... library( RPostgreSQL ) Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared library '/Users/hamannj/Library/R/2.9/library/ RPostgreSQL/libs/i386/RPostgreSQL.so':

Re: [Rd] unable to load shared library (Symbol not found: _PQbackendPID)

2009-09-29 Thread Dirk Eddelbuettel
Jeff, On 29 September 2009 at 17:50, Jeff Hamann wrote: | I can't get the RPostgreSQL library to load on OSX and have no idea | where it's going wrong... | | library( RPostgreSQL ) | Error in dyn.load(file, DLLpath = DLLpath, ...) : |unable to load shared library