Re: [Rd] Calling FORTRAN function from R issue?

2012-03-05 Thread Berwin A Turlach
G'day Dominick, On Mon, 5 Mar 2012 19:21:01 -0500 Dominick Samperi wrote: > Section 5.2 of the R manual (on Extending R) says that only > FORTRAN subroutines can be called (not functions), probably > because of the non-standard way the compilers map FORTRAN > function names to symbols in the DLL

[Rd] R 2.15.0 alpha: R CMD check --as-cran / tools:::..check_package_CRAN_incoming() crash

2012-03-05 Thread Henrik Bengtsson
For what it's worth, with R --no-init-file CMD check --as-cran ${pkg}_${version}.tar.gz on R version 2.15.0 alpha (2012-03-03 r58572) on Windows I just managed to generate a crash: Checking package affxparser... * using log directory 'X:/affxparser,BioC-devel/R2.15.0/affxparser.Rcheck' * using

Re: [Rd] Julia

2012-03-05 Thread William Dunlap
Yes, C does use call by value, always. However, data arrays are almost always passed via pointers to malloc'ed space, so, effectively, data arrays are passed by reference. (One can put a 'const type*' in the prototype of a function to declare that the data pointed to will not not be changed, but i

Re: [Rd] Julia

2012-03-05 Thread Duncan Murdoch
On 12-03-05 6:58 PM, Hervé Pagès wrote: Hi Oliver, On 03/05/2012 09:08 AM, oliver wrote: On Mon, Mar 05, 2012 at 03:53:28PM +, William Dunlap wrote: I haven't used Julia yet, but from my quick reading of the docs it looks like arguments to functions are passed by reference and not by value

Re: [Rd] Julia

2012-03-05 Thread oliver
On Mon, Mar 05, 2012 at 03:58:59PM -0800, Hervé Pagès wrote: > Hi Oliver, > > On 03/05/2012 09:08 AM, oliver wrote: > >On Mon, Mar 05, 2012 at 03:53:28PM +, William Dunlap wrote: > >>I haven't used Julia yet, but from my quick reading > >>of the docs it looks like arguments to functions are >

[Rd] Calling FORTRAN function from R issue?

2012-03-05 Thread Dominick Samperi
Hello, I am trying to call the BLAS Level1 function zdotc from R via a .C call like this: #include "R.h" #include "R_ext/BLAS.h" void testzdotc() { Rcomplex zx[3], zy[3], ret_val; zx[0].r = 1.0; zx[0].i = 0.0; zx[1].r = 2.0; zx[0].i = 0.0; zx[2].r = 3.0; zx[0].i = 0.0; zy[0

Re: [Rd] Julia

2012-03-05 Thread Hervé Pagès
Hi Oliver, On 03/05/2012 09:08 AM, oliver wrote: On Mon, Mar 05, 2012 at 03:53:28PM +, William Dunlap wrote: I haven't used Julia yet, but from my quick reading of the docs it looks like arguments to functions are passed by reference and not by value, so functions can change their arguments

Re: [Rd] Julia

2012-03-05 Thread oliver
On Mon, Mar 05, 2012 at 03:53:28PM +, William Dunlap wrote: > I haven't used Julia yet, but from my quick reading > of the docs it looks like arguments to functions are > passed by reference and not by value, so functions > can change their arguments. My recollection from when > I first starte

Re: [Rd] Julia

2012-03-05 Thread William Dunlap
I haven't used Julia yet, but from my quick reading of the docs it looks like arguments to functions are passed by reference and not by value, so functions can change their arguments. My recollection from when I first started using S (in the course of a job helping profs and grad students do stati

[Rd] plot.TukeyHSD prints funny main titles

2012-03-05 Thread Joris Meys
Hi, if you use the plot.TukeyHSD() function with a main argument, that one is printed over the default title 'X% family-wise confidence level'. Try for example: Model <- aov(count~spray,data=InsectSprays) plot(TukeyHSD(Model),main='H',las=2) This doesn't happen with an xlab or ylab argument,