Re: [Rd] Calling C in R in Windows 64 bit

2010-11-03 Thread Prof Brian Ripley
More simply, he wants to set his paths as described in the CHANGES file and R-admin manual, to C:\Program Files\R\R-2.12.0\bin\x64 and so on. C:\Program Files\R\R-2.12.0\bin\R is only provided for some backwards compatibilty (as the CHANGES file says) and may not be retained in future versio

Re: [Rd] Roxygen: @example tag does not work for me

2010-11-03 Thread baptiste auguie
Hi, I think you could achieve this using the brew package. Define a function that reads your external example file, and have brew insert the resulting string in your script, which can then be processed by roxygen. I'm curious to hear other suggestions, but I doubt it could work out-of-the-box lik

[Rd] Roxygen: @example tag does not work for me

2010-11-03 Thread Janko Thyson
Dear list, somehow I can't get the Roxygen tag "@example" to work for me. My "Roxygen-Header" of a script containing, say, a function looks like this: #' My header #' #' My description #' #' @param a Blabla. #' @param b Blabla. #' @return \code{TRUE}. #' @callGraphPrimitives

Re: [Rd] Calling C in R in Windows 64 bit

2010-11-03 Thread Simon Urbanek
On Nov 3, 2010, at 1:20 PM, aysun.cetinyu...@ulg.ac.be wrote: > Dear developers, > > I am trying to run some C/ Fortran code in R. Although I have experience with > that in Windows (Vista) 32 bit, I could not succeed in 64 bit. I downloaded > the following: > - R 2.12.0 > - Rtools 212 > - mikt

Re: [Rd] [R-SIG-Mac] BLAS benchmarks on R 2.12.0

2010-11-03 Thread Michael Spiegel
My apologies. I finally noticed that the source files in src/extra/blas had changed. I had been looking at the diff file for a few days, until I remembered that the "c" at the beginning of a line signifies the line as a comment. OK, so the game plan for our specific R package will be to take the

Re: [Rd] model.frame problem

2010-11-03 Thread Prof Brian Ripley
It is already fixed, in three steps: R-2.12.0: • model.frame had an unstated 500 byte limit on variable names. (Example reported by Terry Therneau.) R-patched: • The data.frame method of format failed if a column name was longer than 256 bytes (the maximum length allowed fo

Re: [Rd] model.frame problem

2010-11-03 Thread Terry Therneau
A few weeks ago I reported a problem with model.frame, whose root lay in a formula expression "+ ratetable(x1=x1, x2=x2, x100=x100)" that was really long and caused model.frame to fail. Brian had some indefinite ideas on what might need to change in the base code to handle it. In survi

Re: [Rd] R package BibTex entries: looking for a more general solution

2010-11-03 Thread Kurt Hornik
> Michael Friendly writes: Thanks for the suggestions. In fact, we are currently working on this issue. A lot of improvements have already been done, see ?person and ?bibentry for R 2.12.0 or later, especially the details and examples sections. Some more work still needs to be done, though. We

Re: [Rd] inst/ and hidden files/directories, especially inst/.svn/?

2010-11-03 Thread Henrik Bengtsson
On Wed, Nov 3, 2010 at 9:50 AM, Uwe Ligges wrote: > Yes, ".svn" is special cased. Good. Note that it does not seem to be the case for the *.zip archive, only for the *.tar.gz archive, as I showed. /H > > Uwe Ligges > > > On 02.11.2010 23:53, Henrik Bengtsson wrote: >> >> In Section 'Package su

Re: [Rd] Using sample() to sample one value from a single value?

2010-11-03 Thread Henrik Bengtsson
On Wed, Nov 3, 2010 at 11:07 AM, Henrik Bengtsson wrote: > On Wed, Nov 3, 2010 at 11:02 AM, Henrique Dallazuanna > wrote: >> The resample function in the example section from sample help page does it >> or not? > > Yes, I just noticed that one [at the very end of the example in > help("sample")]

Re: [Rd] R package BibTex entries: looking for a more general solution

2010-11-03 Thread Michael Friendly
On 11/3/2010 10:42 AM, John Fox wrote: Hi Michael, FWIW, I've added a CITATION file to the car package on R-Forge. When I composed a CITATION file for the heplots package, I had to root around in R/library to find something to use as a template. The main reason for doing this was to have ci

Re: [Rd] Using sample() to sample one value from a single value?

2010-11-03 Thread Henrik Bengtsson
On Wed, Nov 3, 2010 at 11:02 AM, Henrique Dallazuanna wrote: > The resample function in the example section from sample help page does it > or not? Yes, I just noticed that one [at the very end of the example in help("sample")]. So, maybe resample() should be a function available in R? /Henrik

Re: [Rd] Using sample() to sample one value from a single value?

2010-11-03 Thread Henrique Dallazuanna
The resample function in the example section from sample help page does it or not? On Wed, Nov 3, 2010 at 3:54 PM, Henrik Bengtsson wrote: > Hi, consider this one as an FYI, or a seed for further discussion. > > I am aware that many traps on sample() have been reported over the > years. I know t

[Rd] Using sample() to sample one value from a single value?

2010-11-03 Thread Henrik Bengtsson
Hi, consider this one as an FYI, or a seed for further discussion. I am aware that many traps on sample() have been reported over the years. I know that these are also documents in help("sample"). Still I got bitten by this while writing sample(units, size=length(units)); where 'units' is an i

Re: [Rd] inst/ and hidden files/directories, especially inst/.svn/?

2010-11-03 Thread Uwe Ligges
Yes, ".svn" is special cased. Uwe Ligges On 02.11.2010 23:53, Henrik Bengtsson wrote: In Section 'Package subdirectories' of 'Writing R Extensions', it says about the inst/ directory that: "The contents of the inst subdirectory will be copied recursively to the installation directory (except

Re: [Rd] Calling C in R in Windows 64 bit

2010-11-03 Thread Henrik Bengtsson
Is the dash in "–lR" really a dash? Shouldn't it be "-lR" so it is interpreted as a flag/option?! My $.02 /H On Wed, Nov 3, 2010 at 5:20 AM, wrote: > Dear developers, > > I am trying to run some C/ Fortran code in R. Although I have experience with > that in Windows (Vista) 32 bit, I could n

Re: [Rd] R package BibTex entries: looking for a more general solution

2010-11-03 Thread Yihui Xie
I strongly support this proposal! I also find it inconvenient to cite some R packages and really do not like edit the BibTeX entries manually. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On

[Rd] R package BibTex entries: looking for a more general solution

2010-11-03 Thread Michael Friendly
== Summary == * Problem: BibTeX entries extracted from R packages via citation() require too much manual editing to be of general use. * Proposal: Date: fields should be made mandatory in package DESCRIPTION files, perhaps beginning with warnings from R CMD check * Proposal: Package authors sh

[Rd] Calling C in R in Windows 64 bit

2010-11-03 Thread aysun . cetinyurek
Dear developers, I am trying to run some C/ Fortran code in R. Although I have experience with that in Windows (Vista) 32 bit, I could not succeed in 64 bit. I downloaded the following: - R 2.12.0 - Rtools 212 - miktex 2.9 - inno setup 5 -Afterwards, I changed the path as: ‘C:\Program Files\R\R

Re: [Rd] [R-SIG-Mac] BLAS benchmarks on R 2.12.0

2010-11-03 Thread Simon Urbanek
On Nov 3, 2010, at 12:07 AM, Michael Spiegel wrote: > I would like to apologize for cross-posting this message. But I > realized that one of my questions may be more appropriate for the > SIG-Mac mailing list rather than the R-devel mailing list. You may > wish to ignore the other parts of the

Re: [Rd] on the usage of do.call

2010-11-03 Thread Christophe Dutang
Thank you for help. So I will look for another implementation not involving do_docall. Actually, I want to pass a function and a list of arguments as argument. The example lapply2 in section 5.11 is what I would like to do. Christophe 2010/11/2 Duncan Murdoch > On 02/11/2010 11:28 AM, Christ