[Rd] Call function only when running via R CMD check?

2011-11-02 Thread Henrik Bengtsson
I'd like to be able to change some default settings only in the case when checking a package with 'R CMD check'. More precisely, I'd like to execute a piece of R code before the Rd examples and/or test scripts are evaluated by 'R CMD check'. Is there a mechanism in 'R CMD check' that makes this p

Re: [Rd] overly long lines in pdf output of manual from package

2011-11-02 Thread John C Nash
Thanks for quick reply. To help others I'll put in short comments in edited thread. On 11/02/2011 03:54 PM, Prof Brian Ripley wrote: > On Wed, 2 Nov 2011, John C Nash wrote: > >> In re-factoring my optimx package, I'm finding that the pdf output has some >> lines that are >> outside the margins

Re: [Rd] overly long lines in pdf output of manual from package

2011-11-02 Thread Prof Brian Ripley
On Wed, 2 Nov 2011, John C Nash wrote: In re-factoring my optimx package, I'm finding that the pdf output has some lines that are outside the margins (and there are warnings in R CMD check optimx). Clearly I can fix this by editing the tex file that is generated, but the build infrastructure w

Re: [Rd] Question about copying reference objects using the initialize method

2011-11-02 Thread Martin Morgan
On 11/02/2011 08:16 AM, Aleix Ruiz de Villa wrote: Martin, thanks. So then I should use options (3) or (4). That's all. Is there an efficient way to initialize arguments if I have a long list of arguments? maybe using a 'list'? so that the header of the function is displayed in a friendly style?

Re: [Rd] Writing new methods for `names<-`

2011-11-02 Thread Martin Morgan
On 11/02/2011 11:57 AM, Max Gasner wrote: Hi there, I'm working with an object whose internal data representation is very different from a data.frame (data is stored as a list of big.matrix objects from the bigmemory package) but to which I'd like to give users data.frame-like access. I've imple

Re: [Rd] Sweave, cairo_pdf, xetex, CJK (Re: Sweave, cairo_pdf, CJK, ghostscript)

2011-11-02 Thread Hin-Tak Leung
FWIW, this is the final outcome: Chinese, Tibetan, Arabic, Liangshan Yi (basically Chinese + 3 other languages used in Nw and Sw china). Arabic is interesting, it using a right-to-left layout - and it works in R graphics. http://sourceforge.net/projects/outmodedbonsai/files/snpMatrix%20next/1.19

[Rd] overly long lines in pdf output of manual from package

2011-11-02 Thread John C Nash
In re-factoring my optimx package, I'm finding that the pdf output has some lines that are outside the margins (and there are warnings in R CMD check optimx). Clearly I can fix this by editing the tex file that is generated, but the build infrastructure would still get things wrong in automatic

[Rd] Writing new methods for `names<-`

2011-11-02 Thread Max Gasner
Hi there, I'm working with an object whose internal data representation is very different from a data.frame (data is stored as a list of big.matrix objects from the bigmemory package) but to which I'd like to give users data.frame-like access. I've implemented names very easily as follows: setMet

Re: [Rd] kernapply.ts

2011-11-02 Thread Pierre Chausse
On 02/11/11 12:20 PM, Prof Brian Ripley wrote: > On Wed, 2 Nov 2011, Pierre Chausse wrote: > >> I have a suggestion for kernapply for ts objects. When we choose the >> option circular=F, the returned series don't have the correct dates. The > > That's a matter of opinion. A kernel is applied in th

Re: [Rd] extra & in some lines of R KEYWORDS file

2011-11-02 Thread Prof Brian Ripley
On Wed, 2 Nov 2011, Paul Johnson wrote: The KEYWORDS file (on R 2.13.1 anyway) , seems to have some extra "&" symbols. Look below at "&" before "character" "complex" "category" and "NA" ?intentional or mistaken? If not mistaken, what do the & mean? Both! The mistake is all yours, however. C

[Rd] extra & in some lines of R KEYWORDS file

2011-11-02 Thread Paul Johnson
The KEYWORDS file (on R 2.13.1 anyway) , seems to have some extra "&" symbols. Look below at "&" before "character" "complex" "category" and "NA" ?intentional or mistaken? If not mistaken, what do the & mean? Basics sysdata & Basic System Variables [!= S] da

Re: [Rd] kernapply.ts

2011-11-02 Thread Prof Brian Ripley
On Wed, 2 Nov 2011, Pierre Chausse wrote: I have a suggestion for kernapply for ts objects. When we choose the option circular=F, the returned series don't have the correct dates. The That's a matter of opinion. A kernel is applied in the same way as an MA filter, to historical data. remo

Re: [Rd] How do I use the new 'ByteCompile' field in R-2.14?

2011-11-02 Thread Joshua Wiley
Hi Slava, Here is what I have in my DESCRIPTION: ByteCompile: true seems to work for me. Cheers, Josh On Wed, Nov 2, 2011 at 3:27 AM, Slava Razbash wrote: > Hello, > > > I would like to the use the 'ByteCompile' field in R 2.14. However, > "Writing R Extensions" only describes this field, bu

Re: [Rd] Question about copying reference objects using the initialize method

2011-11-02 Thread Aleix Ruiz de Villa
Martin, thanks. So then I should use options (3) or (4). That's all. Is there an efficient way to initialize arguments if I have a long list of arguments? maybe using a 'list'? so that the header of the function is displayed in a friendly style? Thanks again! 2011/11/1 Martin Morgan : > On 10/31

[Rd] kernapply.ts

2011-11-02 Thread Pierre Chausse
I have a suggestion for kernapply for ts objects. When we choose the option circular=F, the returned series don't have the correct dates. The removed dates are all at the beginning instead of half at the beginning and half at the end. It is particularly useful when we need to smooth the series

[Rd] vignettes/

2011-11-02 Thread Paul Gilbert
I am experimenting with putting vignettes in a vignettes/ directory as suggested in the new R release news. If I understand correctly, it is now suggested that the vignette source (.Stex in my case) should be in the vignettes/ directory and the pdf should be put in the inst/doc/ directory, for

[Rd] How do I use the new 'ByteCompile' field in R-2.14?

2011-11-02 Thread Slava Razbash
Hello, I would like to the use the 'ByteCompile' field in R 2.14. However, "Writing R Extensions" only describes this field, but does not say what value it should be set to. How should i use it? Do you have examples? Is it the same as "LazyData: yes"? Thank you, Slava