Re: [Rd] Make scripts during package installation?

2012-12-07 Thread Prof Brian Ripley
Your subject makes no sense: there is no such thing as a 'make script'. On 07/12/2012 22:51, Henrik Bengtsson wrote: During installation of a package, Makevars/Makefile in src/ is processed. I've always considered the purpose of this for compiling native code. Is that it's solely purpose, or i

Re: [Rd] Comments in the DESCRIPTION file

2012-12-07 Thread Hervé Pagès
Hi Simon, On 12/06/2012 05:59 PM, Simon Urbanek wrote: On Dec 6, 2012, at 8:36 PM, Hervé Pagès wrote: On 12/06/2012 04:53 PM, William Dunlap wrote: Why not just use some tag that R doesn't already use, say "Comment:", instead of a #? If you allow # in position one of a line to mean a comment

[Rd] Make scripts during package installation?

2012-12-07 Thread Henrik Bengtsson
During installation of a package, Makevars/Makefile in src/ is processed. I've always considered the purpose of this for compiling native code. Is that it's solely purpose, or is it alright to use it also for non-code compilation purposes, e.g. building inst/ subdirectories on the fly? If not, a

Re: [Rd] memory management in C code

2012-12-07 Thread Rui Barradas
Hello, This is explained in Writing R Extensions, Section 6.1 file R-exts.pdf in your distribution of R, folder doc. There are two types of functions to allocate memory in C functions called from R code. 1. R_alloc() - the memory is automatically reclaimed at the end of the function call. 2.

[Rd] memory management in C code

2012-12-07 Thread Vineeth Mohan
Hi , I am a newbie to R and i am trying to create a R package which is pretty main memory intensive. I would like to know what happens to the variables allocated in the C code while writing R extensions based on C. Are they preserved until someone de-allocate them or are they taken out by R's garb

[Rd] Workarounds/solutions to Rd file name conflict when extending a S4 method of some other package

2012-12-07 Thread Janko Thyson
Dear list, this is a re-post of my post to r-help on 2012-30-11. Duncan Murdoch did provide a great pointer to a possible workaround, but I'm still eager to check out other ways. So I hope it's okay to get this out on r-devel now as well: // IN SHORT // What are possible workarounds to "consol

[Rd] documentation for legend(): possible missing info for pch.

2012-12-07 Thread Laurent Gautier
In the documentation for graphics::legend(), the entry for "pch" is: > pch: the plotting symbols appearing in the legend, either as vector of 1-character strings, or one (multi character) string. _Must_ be specified for symbol drawing. If I did not misread them, exampl

[Rd] base package: extra new line at source() function

2012-12-07 Thread Jakson Alves de Aquino
Hi, When we do source("file.R", echo = TRUE) the output on R Console includes an extra new line between each line of code. The extra "\n" is added on line 201 of src/library/base/R/source.R (please, see attached patch). I tested the function without this "\n" on an terminal emulator in Linux and o