Re: [Rd] Pb with package::foo(x) <- value

2008-04-18 Thread Prof Brian Ripley
On Fri, 18 Apr 2008, Herve Pages wrote: > Hi, > > The parser doesn't seem to like this: > > somePackage::foo(x) <- value > somePackage:::foo(x) <- value > > where foo() is a replacement function or method defined in package > somePackage. But the error message you show is not from the parser

[Rd] nondigits in R_FILEVERSION mess up Windows build

2008-04-18 Thread Bill Dunlap
I tried for the first time to build R from source on Windows, where I got the source code via svn. Per the Installation and Administration manual, I altered src\gnuwin32\MkRules so it had the the locally correct paths to HTML Help Workshop and Inno Setup 5. I also set USE_SVNVERSION=yes, as sugge

[Rd] AddComment (gram.y)

2008-04-18 Thread Peter Danenberg
AddComment in gram.y would have been an extremely useful feature, but it's been #if-0'd out; is it unimplemented? It should have attached a comment attribute to any SEXP associated with a comment. __ R-devel@r-project.org mailing list https://stat.ethz.

Re: [Rd] Pb with package::foo(x) <- value

2008-04-18 Thread Michael Lawrence
On Fri, Apr 18, 2008 at 7:17 PM, Herve Pages <[EMAIL PROTECTED]> wrote: > Hi, > > The parser doesn't seem to like this: > > somePackage::foo(x) <- value > somePackage:::foo(x) <- value > > where foo() is a replacement function or method defined in package > somePackage. > > For example: > >

[Rd] Pb with package::foo(x) <- value

2008-04-18 Thread Herve Pages
Hi, The parser doesn't seem to like this: somePackage::foo(x) <- value somePackage:::foo(x) <- value where foo() is a replacement function or method defined in package somePackage. For example: > x <- integer(4) > base::length(x) <- 7 Error in base::length(x) <- 7 : invalid func

Re: [Rd] Couldn't (and shouldn't) is.unsorted() be faster?

2008-04-18 Thread Herve Pages
Prof Brian Ripley wrote: > On Thu, 17 Apr 2008, Herve Pages wrote: [...] >> BTW, why not make is.unsorted() a little bit more prepared to silly user >> input: > > Because R is a volunteer project and resources spent on trapping misuse > are resources not available to be spent on other things. (S

Re: [Rd] swig 1.3.35 & R - is the R wrapper still maintained and of interest?

2008-04-18 Thread Michael Lawrence
I am not sure what is included with swig, but have you seen this? http://www.omegahat.org/RSWIG/ I'm not sure if it's actively maintained, but at the very least it might help in your efforts at getting an R swig driver working. Michael On Fri, Apr 18, 2008 at 3:49 AM, Soeren Sonnenburg <[EMAIL

Re: [Rd] [rd] sage <--> r integration

2008-04-18 Thread William Stein
On Fri, Apr 18, 2008 at 8:17 AM, Rob Goedman <[EMAIL PROTECTED]> wrote: > Fritz, > > Thanks a lot for your very clear answer (it provided me with the needed > context for the decisions)! > > I'll continue to investigate what can be done on a small(er) scale with R, > the > already available R/p

Re: [Rd] problem customizing CXXFLAGS in Windows

2008-04-18 Thread Ian Fiske
Thanks for your suggestion, Prof Ripley. The problem was that I was originally specifying PKG_CXXFLAGS and not CXXFLAGS in my Makevars, as you pointed out. Now -O3 is recognized and working. Thanks, Ian On Fri, Apr 18, 2008 at 1:41 PM, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: > On Fri, 18 A

Re: [Rd] problem customizing CXXFLAGS in Windows

2008-04-18 Thread Prof Brian Ripley
On Fri, 18 Apr 2008, Ian Fiske wrote: > Hi all, > > I am running R 2.6.2 in Windows XP with Rtools 2.7 and am trying to compile > a shared library in Windows with customized level of optimization. > Specifically, I would like to have "-O3 -funroll-loops" as flags when I run > "R CMD SHLIB ***.cc"

Re: [Rd] R-extension in unix system -- help to locate header files

2008-04-18 Thread Prof Brian Ripley
I suggested you ask your 'unix' advisor for help. This is *way* off topic for an R forum. On Fri, 18 Apr 2008, Kyeongmi Cheon wrote: > > > Thank you for your reply. I'm really new to this unix system and let me ask > one more > time to make sure if I understand it right. > > So I do it this way

Re: [Rd] naive question regarding running parallel C code from R

2008-04-18 Thread Dirk Eddelbuettel
On 18 April 2008 at 13:03, tyler wrote: | Hi, | | I have only the vaguest notions of what parallel programing, but I think | I have a situation where it might be of use to me, or at least provide | me with the opportunity to learn more about it. Before I invest in | figuring out the nuts and bolt

Re: [Rd] naive question regarding running parallel C code from R

2008-04-18 Thread Simon Urbanek
On Apr 18, 2008, at 12:03 PM, tyler wrote: > Hi, > > I have only the vaguest notions of what parallel programing, but I > think > I have a situation where it might be of use to me, or at least provide > me with the opportunity to learn more about it. Before I invest in > figuring out the nuts a

Re: [Rd] R-extension in unix system -- help to locate header files

2008-04-18 Thread Simon Urbanek
On Apr 18, 2008, at 11:49 AM, Kyeongmi Cheon wrote: > Thank you for your reply. I'm really new to this unix system and let > me ask > one more > time to make sure if I understand it right. > > So I do it this way? > 1. Change my codes to like below: > #include > #include > #include > #includ

[Rd] problem customizing CXXFLAGS in Windows

2008-04-18 Thread Ian Fiske
Hi all, I am running R 2.6.2 in Windows XP with Rtools 2.7 and am trying to compile a shared library in Windows with customized level of optimization. Specifically, I would like to have "-O3 -funroll-loops" as flags when I run "R CMD SHLIB ***.cc" to speed the program for my simulations. I have

[Rd] naive question regarding running parallel C code from R

2008-04-18 Thread tyler
Hi, I have only the vaguest notions of what parallel programing, but I think I have a situation where it might be of use to me, or at least provide me with the opportunity to learn more about it. Before I invest in figuring out the nuts and bolts, can anyone confirm that this is a sane approach, o

Re: [Rd] R-extension in unix system -- help to locate header files

2008-04-18 Thread Kyeongmi Cheon
Thank you for your reply. I'm really new to this unix system and let me ask one more time to make sure if I understand it right. So I do it this way? 1. Change my codes to like below: #include #include #include #include #include #include 2. and at the command line, set path =

Re: [Rd] configure can't find dgemm in MKL10

2008-04-18 Thread Prof Brian Ripley
Did you see See 'Shared BLAS' for an alternative (and in many ways preferable) way to use MKL. ? That's an easier route to get working, and you can swap BLASes almost instantly. But you need to look at the config.log to see what went wrong. 'Xeon' covers a multitude of processors, but m

[Rd] configure can't find dgemm in MKL10

2008-04-18 Thread Christopher Paciorek
Hi, I'm trying to follow the R-admin instructions for using MKL10 as the external BLAS compiling R-2.6.2 under Linux on a RH EL head node of a cluster. The configure process seems to have problems when it checks for dgemm in the BLAS. I'm using configure as: ./configure CC=icc F77=ifort --wi

Re: [Rd] [rd] sage <--> r integration

2008-04-18 Thread Friedrich . Leisch
> On Thu, 17 Apr 2008 09:05:56 -0700, > Rob Goedman (RG) wrote: > Mike, > I'm also surprised so few reactions have been forthcoming. I saw > William's email shortly after Jan's email about Sage. There is a priovate mailing list for all R Google SoC mentors and parts were discussed

[Rd] swig 1.3.35 & R - is the R wrapper still maintained and of interest?

2008-04-18 Thread Soeren Sonnenburg
Dear all, I was trying to use the R swig wrapper with R 2.7 and shogun ( http://www.shogun-toolbox.org ) but it fails completely, as in doesn't even compile and even after patching then though compiling - crashes... So I asked on swig-users/swig-devel CC'ing the potential R maintainer but I never