Re: [Rd] Recommended way to call/import functions from a Suggested package

2013-02-25 Thread Davor Cubranic
I don't see any warnings if MASS is listed in Suggests in the DESCRIPTION. Davor On 2013-02-25, at 1:28 PM, Hadley Wickham wrote: >> To summarize, it appears that the only way to call functions from a >> suggested package is by using either 'require' (which will dynamically >> attach it) or the

Re: [Rd] Recommended way to call/import functions from a Suggested package

2013-02-25 Thread Hadley Wickham
> loadNamespaces loads but does not attach the package. Suggests: is enough to > quieten the warning with > > ~/tmp$ R --version > R Under development (unstable) (2013-02-21 r62017) -- "Unsuffered > Consequences" > > This is consistent with RShowDoc("R-exts") section 1.1.1 > > Namespaces accessed

Re: [Rd] Recommended way to call/import functions from a Suggested package

2013-02-25 Thread Martin Morgan
On 02/25/2013 01:28 PM, Hadley Wickham wrote: To summarize, it appears that the only way to call functions from a suggested package is by using either 'require' (which will dynamically attach it) or the double colon method. Is this something that should be mentioned in R-exts? Except the double

Re: [Rd] Recommended way to call/import functions from a Suggested package

2013-02-25 Thread Hadley Wickham
> To summarize, it appears that the only way to call functions from a > suggested package is by using either 'require' (which will dynamically > attach it) or the double colon method. Is this something that should be > mentioned in R-exts? Except the double colon method doesn't work (i.e. does not

Re: [Rd] Recommended way to call/import functions from a Suggested package

2013-02-25 Thread Davor Cubranic
I haven't gotten any complaints from "R CMD check" when I used Simon's suggestion, even with "--as-cran" flag. Hadley's suggestion to use 'require' also works, and its side-effect of attaching the other package can in some applications be seen by the end user as a nice bonus, so I'll probably ha

Re: [Rd] Recommended way to call/import functions from a Suggested package

2013-02-25 Thread Davor Cubranic
On 2013-02-22, at 10:23 PM, Berwin A Turlach wrote: >> On Feb 22, 2013, at 6:39 PM, David Winsemius wrote: > [...] >>> I've always wondered: How does lattice manage to use grid functions >>> without putting them on the search path? > > Because lattice imports the grid package and has a NAMESPACE

[Rd] png() problem with R-devel on Mac

2013-02-25 Thread Dan Tenenbaum
> png(tempfile()) Error in .External(C_Quartz, "png", path.expand(filename), width, height, : Incorrect number of arguments (12), expecting 11 for 'Quartz' > sessionInfo() R Under development (unstable) (2013-02-24 r62054) Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit) locale: [1] en_US.UTF

Re: [Rd] Registering native routines

2013-02-25 Thread Terry Therneau
That was the correct direction: I changed the earler line to "routines <- list(Ccoxfit5a, ..." and the the later to .C(routnines[[1]]) and now it works as desired. Terry T. On 02/23/2013 03:09 AM, Duncan Murdoch wrote: On 13-02-22 2:59 PM, Terry Therneau wrote: I'm working on registering all