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 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 this because what you uploa

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 - r-pat

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 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 t

[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 = n

[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 LD_LIBRARY_PATH=/ho

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 * LPP200

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 anythi

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 yo

Re: [Rd] model.matrix troubles with AlgDesign

2009-09-29 Thread Heather Turner
Hi Ulrike, It looks like 'aus' is created by fac.design(); is there any reason why you can't add the variable y <- 1:nrow(aus) to this data frame and use y as the response in your formula? Otherwise I think aus needs to be in the environment of frml (or frml needs to be given the environment of a

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 ma

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 no

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 i

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 there

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

2009-09-29 Thread Dirk Eddelbuettel
This is so much fun. The C code posted wasn't exactly legible. So here is a new C++ variant that I just committed to the RInside SVN as a new example. And it mine works (against RInide and Rcpp as on CRAN): e...@ron:~/svn/rinside/pkg/inst/examples> ./rinside_sample4 Package 'sn', 0.4-12 (2009-0

[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

Re: [Rd] model.matrix troubles with AlgDesign

2009-09-29 Thread Heather Turner
Ah ok, I get the problem now. I think you just need to modify model.matrix.formula as follows model.matrix.formula <- function (frml, data = sys.frame(sys.parent()), ...) { if (!missing(data)) { if (!inherits(data, "data.frame")) stop("data must be a data.frame")

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

2009-09-29 Thread Simon Urbanek
Thomas, On Sep 29, 2009, at 15:15 , Thomas Friedrichsmeier wrote: 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. Yes, good thinking :). I'm ob

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

2009-09-29 Thread Jeff Horner
Simon Urbanek wrote: [...] I don't have konqueror at hand, so I have tested and fixed the lynx case (lynx is acting as an HTTP/1.0 client and expects non-persistent connection). With some luck the fix may solve the konqueror issue as well (although I'd be a bit surprised if konqueror was not 1.

[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': dlopen(/Use

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 '/Users/hamannj/Library

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

2009-09-29 Thread Abhijit Bera
Hi Thanks all of you for your suggestions. I will put up my code shortly based on your suggestions. I wonder how the parsing and eval will work when most of my data comes in from an external source like a DB? Probably it would be more efficient to make an object? H... maybe it has to be a mi

[Rd] build issues on Solaris (PR#13975)

2009-09-29 Thread rsparapa
Full_Name: Rodney Sparapani Version: 2.9.2 OS: Solaris 10 Submission from: (NULL) (141.106.121.40) There are a few issues with building on Solaris (and UNIX in general, I suppose). 1. on line 50686 of configure, I'm seeing some trouble: lib=`echo ${lib}|sed -e s:${JAVA_HOME}:\$\{JAVA_HOME\}:g` E