Re: [Rd] S3 methods in default namespace

2011-08-29 Thread Hadley Wickham
So doesn't that break packages that use S3 but don't have a NAMESPACE? Maybe, but since the methods are exported as functions they are also found for method dispatch and imported, if another package imports from the Namspace. The problem I see is what happens if method dispatch is done on a

Re: [Rd] S3 methods in default namespace

2011-08-29 Thread Uwe Ligges
On 29.08.2011 14:20, Hadley Wickham wrote: So doesn't that break packages that use S3 but don't have a NAMESPACE? Maybe, but since the methods are exported as functions they are also found for method dispatch and imported, if another package imports from the Namspace. The problem I see is

Re: [Rd] S3 methods in default namespace

2011-08-29 Thread Duncan Murdoch
On 29/08/2011 8:20 AM, Hadley Wickham wrote: So doesn't that break packages that use S3 but don't have a NAMESPACE? Maybe, but since the methods are exported as functions they are also found for method dispatch and imported, if another package imports from the Namspace. The problem I

[Rd] R-loadable dll with minGW-compiled linked library

2011-08-29 Thread Ilana Lichtenstein
I am trying to create a dynamic library (dll) for loading into R with dyn.load command. I am trying to use the library libdai (a machine learning C++ library) and boost (C++ libraries) in my main C++ program. While I am able to compile the main C++ file I am using successfully into a dll, there

Re: [Rd] R-loadable dll with minGW-compiled linked library

2011-08-29 Thread Dirk Eddelbuettel
On 30 August 2011 at 02:25, Ilana Lichtenstein wrote: | The tutorials on the web regarding creation of C++ dlls do not discuss | linking to libraries. Well, there are working examples among the 3200+ CRAN packages... | Thus my two questions are: | (1) Does anyone know how to compile a C++

[Rd] How to safely using OpenMP pragma inside a .C() function?

2011-08-29 Thread Alireza Mahani
I am trying to parallelize part of a C function that is called from R (via .C) using OpenMP's parallel for pragma. I get mixed results: some runs finish with no problem, but some lead to R crashing after issuing a long error message involving memory violations. I found this post, which describes

[Rd] http://cran.r-project.org/src/base/NEWS.html points to R v2.13.0

2011-08-29 Thread Henrik Bengtsson
FYI, http://cran.r-project.org/src/base/NEWS.html [May 18, 2011] is for R v2.13.0 whereas http://cran.r-project.org/src/base/NEWS [July 8, 2011] is for R v2.13.1. The former is linked to on a few places on http://cran.r-project.org/. /Henrik __

[Rd] Out-of-date manual or small bug in R CMD check?

2011-08-29 Thread Gabriel Becker
Hey all, I get a warning about an unsupported file type in the data directory during R CMD check (for R 2.13.1) if I use the save function to create an Rdata, but if I save the same object to a .rda file, no warning. Section 1.1.5 (pg 11 of the pdf) of the Writing R Extensions manual (2.13.1)

Re: [Rd] Out-of-date manual or small bug in R CMD check?

2011-08-29 Thread Duncan Murdoch
On 11-08-29 6:37 PM, Gabriel Becker wrote: Hey all, I get a warning about an unsupported file type in the data directory during R CMD check (for R 2.13.1) if I use the save function to create an Rdata, but if I save the same object to a .rda file, no warning. Section 1.1.5 (pg 11 of the pdf)

Re: [Rd] How to safely using OpenMP pragma inside a .C() function?

2011-08-29 Thread Simon Urbanek
On Aug 29, 2011, at 7:48 PM, Alireza Mahani wrote: I am trying to parallelize part of a C function that is called from R (via .C) using OpenMP's parallel for pragma. I get mixed results: some runs finish with no problem, but some lead to R crashing after issuing a long error message

Re: [Rd] Out-of-date manual or small bug in R CMD check?

2011-08-29 Thread Gabriel Becker
On Mon, Aug 29, 2011 at 5:30 PM, Duncan Murdoch murdoch.dun...@gmail.comwrote: On 11-08-29 6:37 PM, Gabriel Becker wrote: Hey all, I get a warning about an unsupported file type in the data directory during R CMD check (for R 2.13.1) if I use the save function to create an Rdata, but if I