[Rd] Problem using RBloomberg blpConnect

2012-05-02 Thread wuffmeister
I am using StatET/Eclipse successfully, but RBloomberg does not want to play ball: > conn <- blpConnect(log.level="finest") R version 2.14.2 (2012-02-29) rJava Version 0.9-3 RBloomberg Version 0.4-151 Java environment initialized successfully. Looking for most recent blpapi3.jar file... Adding

Re: [Rd] Decompressing raw vectors in memory

2012-05-02 Thread Hadley Wickham
> I understand the desire not to have any dependency on additional > packages, and I have no desire to engage in any "mine's better" exchanges. > So write this just for the record. > The gzunzip() function handle this. Funnily enough I just discovered that RCurl already handles this: you just need

Re: [Rd] Decompressing raw vectors in memory

2012-05-02 Thread Duncan Temple Lang
I understand the desire not to have any dependency on additional packages, and I have no desire to engage in any "mine's better" exchanges. So write this just for the record. The gzunzip() function handle this. > library(RCurl); library(Rcompression) > val = getURLContent("http://httpbin.org/gzip

Re: [Rd] Decompressing raw vectors in memory

2012-05-02 Thread Hadley Wickham
> Well, it seems what you get there depends on the client, but I did > > tystie% curl -o foo "http://httpbin.org/gzip"; > tystie% file foo > foo: gzip compressed data, last modified: Wed May  2 17:06:24 2012, max > compression > > and the final part worried me: I do not know if memDecompress() know

Re: [Rd] Decompressing raw vectors in memory

2012-05-02 Thread Prof Brian Ripley
On 02/05/2012 16:43, Hadley Wickham wrote: I'm struggling to decompress a gzip'd raw vector in memory: content<- readBin("http://httpbin.org/gzip";, "raw", 1000) memDecompress(content, type = "gzip") # Error in memDecompress(content, type = "gzip") : # internal error -3 in memDecompress(2) I'

Re: [Rd] Decompressing raw vectors in memory

2012-05-02 Thread Hadley Wickham
>> I'm struggling to decompress a gzip'd raw vector in memory: >> >> content<- readBin("http://httpbin.org/gzip";, "raw", 1000) >> >> memDecompress(content, type = "gzip") >> # Error in memDecompress(content, type = "gzip") : >> #  internal error -3 in memDecompress(2) >> >> I'm reasonably certain

Re: [Rd] The constant part of the log-likelihood in StructTS

2012-05-02 Thread Mark Leeds
Hi Ravi: As far as I know ( well , really read ) and Bert et al can say more , the AIC is not dependent on the models being nested as long as the sample sizes used are the same when comparing. In some cases, say comparing MA(2), AR(1), you have to be careful with sample size usage but there is no n

Re: [Rd] Decompressing raw vectors in memory

2012-05-02 Thread Prof Brian Ripley
On 02/05/2012 14:24, Hadley Wickham wrote: Hi all, I'm struggling to decompress a gzip'd raw vector in memory: content<- readBin("http://httpbin.org/gzip";, "raw", 1000) memDecompress(content, type = "gzip") # Error in memDecompress(content, type = "gzip") : # internal error -3 in memDecompre

Re: [Rd] The constant part of the log-likelihood in StructTS

2012-05-02 Thread Ravi Varadhan
Comparing such disparate, non-nested models can be quite problematic. I am not sure what AIC/BIC comparisons mean in such cases. The issue of different constants should be the least of your worries. Ravi -Original Message- From: r-devel-boun...@r-project.org [mailto:r-devel-boun...@r-

[Rd] Decompressing raw vectors in memory

2012-05-02 Thread Hadley Wickham
Hi all, I'm struggling to decompress a gzip'd raw vector in memory: content <- readBin("http://httpbin.org/gzip";, "raw", 1000) memDecompress(content, type = "gzip") # Error in memDecompress(content, type = "gzip") : # internal error -3 in memDecompress(2) I'm reasonably certain that the file

Re: [Rd] --as-cran error

2012-05-02 Thread Duncan Murdoch
On 12-05-02 6:06 AM, Mauricio Zambrano-Bigiarini wrote: Dear List, While using the --as-cran option for checking one of my packages: R CMD check --as-cran hydroGOF_0.3-3.tar.gz I got the following error message: pkgname<- "hydroGOF" > source(file.path(R.home("share"), "R", "examples-heade

[Rd] --as-cran error

2012-05-02 Thread Mauricio Zambrano-Bigiarini
Dear List, While using the --as-cran option for checking one of my packages: R CMD check --as-cran hydroGOF_0.3-3.tar.gz I got the following error message: pkgname <- "hydroGOF" > source(file.path(R.home("share"), "R", "examples-header.R")) > options(warn = 1) > library('hydroGOF') Error in l