Re: [Rd] import question

2011-03-23 Thread Prof Brian Ripley
On Thu, 24 Mar 2011, Ben Bolker wrote: Ben Bolker gmail.com> writes: I have been struggling all day to import a particular function/method combination (ranef(), which extracts the random effects from a mixed model fit) from the nlme package into another package ... so far without success.

Re: [Rd] import question

2011-03-23 Thread Ben Bolker
Ben Bolker gmail.com> writes: > > > I have been struggling all day to import a particular function/method > combination (ranef(), which extracts the random effects from a mixed > model fit) from the nlme package into another package ... so far without > success. > Answered my own question

[Rd] import question

2011-03-23 Thread Ben Bolker
I have been struggling all day to import a particular function/method combination (ranef(), which extracts the random effects from a mixed model fit) from the nlme package into another package ... so far without success. The NAMESPACE for nlme contains the following lines: export(..., ranef,

[Rd] suggestions re trunc.POSIXt

2011-03-23 Thread Kenn Konstabel
Dear all, I hope this is a right place to post this; r-help might be appropriate but it looks like I'm suggesting a change in base package, so I decided to post here. (+ Apologies if that has been changed recently -- the version I'm using is R.2.12.2 on Windows.) I've noticed an unexpected behavi

Re: [Rd] Sweave: multiple graphic formats, e.g. win.metafile

2011-03-23 Thread Greg Snow
You might consider using odfWeave, then you can create a single document, save it as a word doc, and send it to collaborators where they can then cut and paste from the word doc to whatever they are using. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s..

Re: [Rd] argument handling in boot.ci

2011-03-23 Thread Duncan Murdoch
On 23/03/2011 11:35 AM, Matthew Vernon wrote: Hi, boot.ci fails to check if the "type" argument is valid or not. This tripped me up when I had a script that called boot.ci(type="normal",...) repeatedly - only later when I tried to do some further analysis did I realise I'd got nothing useful bac

[Rd] argument handling in boot.ci

2011-03-23 Thread Matthew Vernon
Hi, boot.ci fails to check if the "type" argument is valid or not. This tripped me up when I had a script that called boot.ci(type="normal",...) repeatedly - only later when I tried to do some further analysis did I realise I'd got nothing useful back from boot.ci. It strikes me that this be

Re: [Rd] system.file() to read a text file from a vignette

2011-03-23 Thread Michael Friendly
On 3/23/2011 10:21 AM, Duncan Murdoch wrote: > > Everything in the "inst" directory is moved up a level when it is > installed. So you shouldn't mention "inst" in its path. > > I discovered this by error-and-trial. ?system.file is mute on this. Perhaps R-ext.pdf could make this explicit by say

Re: [Rd] system.file() to read a text file from a vignette

2011-03-23 Thread Duncan Murdoch
On 23/03/2011 10:03 AM, Michael Friendly wrote: [Env: R 2.12.2, WinXp] In a vignette for the vcdExtra package, I had a text file, tv.dat under data/, that I used in the vignette as <>= tv.data<-read.table(system.file("data","tv.dat",package="vcdExtra")) head(tv.data,5) @ I was told that this n

Re: [Rd] system.file() to read a text file from a vignette

2011-03-23 Thread Tobias Verbeke
Hi Michael, On 03/23/2011 03:03 PM, Michael Friendly wrote: [Env: R 2.12.2, WinXp] In a vignette for the vcdExtra package, I had a text file, tv.dat under data/, that I used in the vignette as <>= tv.data<-read.table(system.file("data","tv.dat",package="vcdExtra")) head(tv.data,5) @ I was tol

[Rd] system.file() to read a text file from a vignette

2011-03-23 Thread Michael Friendly
[Env: R 2.12.2, WinXp] In a vignette for the vcdExtra package, I had a text file, tv.dat under data/, that I used in the vignette as <>= tv.data<-read.table(system.file("data","tv.dat",package="vcdExtra")) head(tv.data,5) @ I was told that this now generates a warning for non-Rdata files in R

Re: [Rd] Sweave: multiple graphic formats, e.g. win.metafile

2011-03-23 Thread Claudia Beleites
On 03/23/2011 01:05 PM, Prof Brian Ripley wrote: We are currently in the process of implementing PNG and JPEG for 2.13.0, and an extensible architecture is planned for 2.14.0. :-) this is really good news :-) Thank you! -- Claudia Beleites DI3 Università degli Studi di Trieste Via Alfonso Va

Re: [Rd] Sweave: multiple graphic formats, e.g. win.metafile

2011-03-23 Thread Prof Brian Ripley
We are currently in the process of implementing PNG and JPEG for 2.13.0, and an extensible architecture is planned for 2.14.0. On Wed, 23 Mar 2011, Meyer, Sebastian wrote: Dear R devel, being constrained to a windows environment at work and having colleagues being accustomed to the Microsoft

[Rd] Suggestion: "kill -USR1 pid" should respect --no-save option

2011-03-23 Thread Stig B. Mortensen
If R is killed with "kill -USR1 pid" it will terminate and save its workspace overwriting any exiting .RData-file even if R has been started with the --no-save option. Preferably R should always respect the --no-save option and this should thus be used to determine if the workspace is saved when

[Rd] Sweave: multiple graphic formats, e.g. win.metafile

2011-03-23 Thread Meyer, Sebastian
Dear R devel, being constrained to a windows environment at work and having colleagues being accustomed to the Microsoft Office Suite, I was looking for a way to have the RweaveLatex driver for Sweave automatically generating 'win.metafile's in addition to the pdf graphics. Without this functio