Re: [Rd] isOpen on closed connections

2007-11-14 Thread Prof Brian Ripley
I think the confusion here is over close(): that closes *and destroys* a connection, so it no longer exists. isOpen applies to existing connections: you cannot close but not destroy them at R level, but C code can (and does). You will see it in use in the utils package. On Wed, 14 Nov 2007,

Re: [Rd] faqs

2007-11-14 Thread Gabor Grothendieck
inst/NEWS would have the advantage of consistency with R itself which also has a NEWS file. On Nov 14, 2007 10:15 PM, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > On 14/11/2007 8:53 PM, Gabor Grothendieck wrote: > > Another possibility is to just place it at the end of the vignette. > > That is wh

Re: [Rd] isOpen on closed connections

2007-11-14 Thread Seth Falcon
"Roger D. Peng" <[EMAIL PROTECTED]> writes: > As far as I can tell, 'isOpen' cannot return FALSE in the case when 'rw = > ""'. > If the connection has already been closed by 'close' or some other function, > then isOpen will produce an error. The problem is that when isOpen calls > 'getConnec

Re: [Rd] package installation order

2007-11-14 Thread Seth Falcon
Dirk Eddelbuettel <[EMAIL PROTECTED]> writes: > When trying to package the by-now-gargantuan Rmetrics for Debian (which is > still ongoing), I looked around for some Depends builders. Turns out that > BioC has this. E.g. the following worked for: > > ## > install.packages("Biobase", repo="http://

Re: [Rd] faqs

2007-11-14 Thread Duncan Murdoch
On 14/11/2007 8:53 PM, Gabor Grothendieck wrote: > Another possibility is to just place it at the end of the vignette. > That is where it is in the proto package: > > http://cran.r-project.org/doc/vignettes/proto/proto.pdf > > Package documentation is already quite scattered and adding > a faq()

Re: [Rd] library path in Rd link

2007-11-14 Thread Duncan Murdoch
On 14/11/2007 7:44 PM, Gabor Grothendieck wrote: > On Nov 14, 2007 4:36 PM, Duncan Murdoch <[EMAIL PROTECTED]> wrote: >> On Unix-alikes, the workaround is to build soft links to all the >> packages in a standard location; but soft links don't work on Windows >> (and we don't want to get into the al

[Rd] Help about nnet library

2007-11-14 Thread Pierre-Henri BUSSIERE
Hello, First of all I am french, so please forgive me, if there are some big language mistakes in my sentences. I do not know if it is the good mail address to send my question, if not please tell me and forgive me, I have also sent this quetion to r-help, because the answer could be known fro

Re: [Rd] faqs

2007-11-14 Thread Gabor Grothendieck
Another possibility is to just place it at the end of the vignette. That is where it is in the proto package: http://cran.r-project.org/doc/vignettes/proto/proto.pdf Package documentation is already quite scattered and adding a faq() command would add just one more thing one has to do. Here are

[Rd] faqs

2007-11-14 Thread roger koenker
An extremely modest proposal: It would be nice if packages could have a FAQ and if faq(package.name) would produce this faq. And if, by default faq() FAQ() would produce the admirable R faq... Apologies in advance if there is already a mechanism like this, but help.se

Re: [Rd] library path in Rd link

2007-11-14 Thread Adrian Dusa
On Thursday 15 November 2007, Prof Brian Ripley wrote: > [...] > > > > Using as above: > > \code{\link{anova}} > > > > the html help file directs to > > file:///home/adi/myRlibrary/stats/html/anova.html > > I hope it is actually ../../stats/html/anova.html and the browser is > interpreting that as

Re: [Rd] library path in Rd link

2007-11-14 Thread Gabor Grothendieck
On Nov 14, 2007 4:36 PM, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > > On Unix-alikes, the workaround is to build soft links to all the > packages in a standard location; but soft links don't work on Windows > (and we don't want to get into the almost-undocumented hard links that > exist on some Wi

Re: [Rd] library path in Rd link

2007-11-14 Thread Adrian Dusa
On Thursday 15 November 2007, Duncan Murdoch wrote: > [...] > > I tried using help.start() in .Rprofile, but it throws a (probably > > obvious) error: > > Error: could not find function "help.start" > > That's just because .Rprofile is run before most packages are attached; > you should be able to

Re: [Rd] library path in Rd link

2007-11-14 Thread Adrian Dusa
On Thursday 15 November 2007, Duncan Murdoch wrote: > [...] > > > > I understand, thank you. I learned from Prof. Ripley's answer that > > Windows has link.html.help() function to resolve the html help files from > > all installed packages. > > I didn't know about that; I mainly use the CHMHELP fil

Re: [Rd] library path in Rd link

2007-11-14 Thread Duncan Murdoch
On 14/11/2007 6:44 PM, Adrian Dusa wrote: > On Thursday 15 November 2007, Prof Brian Ripley wrote: >> [...] >>> Using as above: >>> \code{\link{anova}} >>> >>> the html help file directs to >>> file:///home/adi/myRlibrary/stats/html/anova.html >> I hope it is actually ../../stats/html/anova.html an

Re: [Rd] library path in Rd link

2007-11-14 Thread Duncan Murdoch
On 14/11/2007 6:09 PM, Adrian Dusa wrote: > On Wednesday 14 November 2007, Duncan Murdoch wrote: >> On 11/14/2007 8:49 AM, Adrian Dusa wrote: >>> [...] >>> >>> Is there a method to create links to functions from the base package, for >>> example (which is installed by default in the normal library

Re: [Rd] library path in Rd link

2007-11-14 Thread Prof Brian Ripley
On Thu, 15 Nov 2007, Adrian Dusa wrote: > Dear Prof. Ripley, > > On Wednesday 14 November 2007, Prof Brian Ripley wrote: >> On Wed, 14 Nov 2007, Adrian Dusa wrote: >>> Dear all, >>> >>> When creating new functions in a package, there is a "See also" component >>> in the Rd file. >>> Usually one us

Re: [Rd] stats package, optim and other optimization methods: more parameters?

2007-11-14 Thread Mike Preuss
Dear Brian, thanks for the hint. But my question is more concerned with the technical procedure. Of course, I can change the C code locally. And then use a locally changed package. But then nobody else beside myself can use it, right? If changes were made in the official code (and it's not really

Re: [Rd] stats package, optim and other optimization methods: more parameters?

2007-11-14 Thread Prof Brian Ripley
On Wed, 14 Nov 2007, Mike Preuss wrote: > Dear R developers, > > concerning the stats package, > is there a way to access more of the 'internal' > parameters of the optim() methods (e.g. BFGS), > without me rewriting optim code and using it as > an internal, patched stats package? It may not > sou

[Rd] library path in Rd link

2007-11-14 Thread Adrian Dusa
Dear all, When creating new functions in a package, there is a "See also" component in the Rd file. Usually one uses \link{otherfun}, if the other function is from the same package, or \link[otherpackage]{otherfun} otherwise. The trouble is that I install new packages not in the default R libr

[Rd] stats package, optim and other optimization methods: more parameters?

2007-11-14 Thread Mike Preuss
Dear R developers, concerning the stats package, is there a way to access more of the 'internal' parameters of the optim() methods (e.g. BFGS), without me rewriting optim code and using it as an internal, patched stats package? It may not sound useful to you, but for me it is important to be able

Re: [Rd] library path in Rd link

2007-11-14 Thread Prof Brian Ripley
On Wed, 14 Nov 2007, Adrian Dusa wrote: > > Dear all, > > When creating new functions in a package, there is a "See also" component in > the Rd file. > Usually one uses \link{otherfun}, if the other function is from the same > package, or \link[otherpackage]{otherfun} otherwise. I think you have

Re: [Rd] slots of type "double"

2007-11-14 Thread Martin Maechler
still found a bit time for more remarks. > "MM" == Martin Mächler <[EMAIL PROTECTED]> > on Wed, 14 Nov 2007 14:23:12 +0100 (CET) writes: MM> On Wed, November 14, 2007 09:09, Prof Brian Ripley MM> wrote: >> On Tue, 13 Nov 2007, Prof Brian Ripley wrote: >> >>> On Tu

Re: [Rd] library path in Rd link

2007-11-14 Thread Duncan Murdoch
On 11/14/2007 8:49 AM, Adrian Dusa wrote: > Dear all, > > When creating new functions in a package, there is a "See also" component in > the Rd file. > Usually one uses \link{otherfun}, if the other function is from the same > package, or \link[otherpackage]{otherfun} otherwise. > > The trouble

Re: [Rd] package installation order

2007-11-14 Thread Kuhn, Max
Professor Ripley, > It does say 'URL(s)', hence > > repos = "file:///home/max/tmp/r-2.5.1-pkgs-updated" That works. Thanks for your expertise. Max __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] package installation order

2007-11-14 Thread Prof Brian Ripley
On Wed, 14 Nov 2007, Kuhn, Max wrote: > Professor Ripley, > >> You need the information from available.packages() to do the ordering, > so >> you need a non-NULL repository. This works if you convert your local >> collection into a local repository. You will need a PACKAGES file, but > >> tools::

Re: [Rd] package installation order

2007-11-14 Thread Kuhn, Max
Professor Ripley, > You need the information from available.packages() to do the ordering, so > you need a non-NULL repository. This works if you convert your local > collection into a local repository. You will need a PACKAGES file, but > tools::write_PACKAGES can re-create one for you. > >

Re: [Rd] package installation order

2007-11-14 Thread Kuhn, Max
Dirk, Thanks for the email. > When trying to package the by-now-gargantuan Rmetrics for Debian (which is > still ongoing), I looked around for some Depends builders. Turns out that > BioC has this. E.g. the following worked for: > > ## > install.packages("Biobase", repo="http://www.bioconduct

Re: [Rd] package installation order

2007-11-14 Thread Prof Brian Ripley
On Wed, 14 Nov 2007, Kuhn, Max wrote: > I have roughly 80 or so packages sources. These were obtained by taking > a snapshot of certain CRAN packages a few months ago using > > install.packages( > pkgs = pckNames, > destdir = "/home/max", > repos = "http://cran.r-project.org"; >

Re: [Rd] package installation order

2007-11-14 Thread Dirk Eddelbuettel
Hi Max, On 14 November 2007 at 09:34, Kuhn, Max wrote: | I have roughly 80 or so packages sources. These were obtained by taking | a snapshot of certain CRAN packages a few months ago using | |install.packages( | pkgs = pckNames, | destdir = "/home/max", | repos = "http://

[Rd] package installation order

2007-11-14 Thread Kuhn, Max
I have roughly 80 or so packages sources. These were obtained by taking a snapshot of certain CRAN packages a few months ago using install.packages( pkgs = pckNames, destdir = "/home/max", repos = "http://cran.r-project.org"; dependencies = c("Depends", "Imports", "Sugg

[Rd] isOpen on closed connections

2007-11-14 Thread Roger D. Peng
As far as I can tell, 'isOpen' cannot return FALSE in the case when 'rw = ""'. If the connection has already been closed by 'close' or some other function, then isOpen will produce an error. The problem is that when isOpen calls 'getConnection', the connection cannot be found and 'getConnection

Re: [Rd] When to use LazyLoad, LazyData and ZipData?

2007-11-14 Thread Bjørn-Helge Mevik
Duncan Murdoch wrote: > On 11/14/2007 7:01 AM, Bjørn-Helge Mevik wrote: > >> When should one specify LazyLoad, LazyData, and ZipData? > > I think that you shouldn't care about these things, and should accept > the default for them unless one of those two pieces of advice applies > to you. Let the

Re: [Rd] When to use LazyLoad, LazyData and ZipData?

2007-11-14 Thread Gabor Grothendieck
On Nov 14, 2007 7:01 AM, Bjørn-Helge Mevik <[EMAIL PROTECTED]> wrote: > Dear developeRs, > > I've searched the documentation, FAQ, and mailing lists, but haven't > found the answer(*) to the following: > > When should one specify LazyLoad, LazyData, and ZipData? > > And what is the default if they

Re: [Rd] slots of type "double"

2007-11-14 Thread Martin Mächler
On Wed, November 14, 2007 09:09, Prof Brian Ripley wrote: > On Tue, 13 Nov 2007, Prof Brian Ripley wrote: > >> On Tue, 13 Nov 2007, John Chambers wrote: >> >>> What's the proposal here? To eliminate "double" as a class? No >>> objection >> >> Eliminate "double" and "single". >> >>> from this corn

Re: [Rd] When to use LazyLoad, LazyData and ZipData?

2007-11-14 Thread Prof Brian Ripley
On Wed, 14 Nov 2007, Bjørn-Helge Mevik wrote: Dear developeRs, I've searched the documentation, FAQ, and mailing lists, but haven't found the answer(*) to the following: When should one specify LazyLoad, LazyData, and ZipData? Preferably always, and I would suggest all should be 'yes' if you

Re: [Rd] When to use LazyLoad, LazyData and ZipData?

2007-11-14 Thread Duncan Murdoch
On 11/14/2007 7:01 AM, Bjørn-Helge Mevik wrote: > Dear developeRs, > > I've searched the documentation, FAQ, and mailing lists, but haven't > found the answer(*) to the following: > > When should one specify LazyLoad, LazyData, and ZipData? > > And what is the default if they are left unspecifie

[Rd] When to use LazyLoad, LazyData and ZipData?

2007-11-14 Thread Bjørn-Helge Mevik
Dear developeRs, I've searched the documentation, FAQ, and mailing lists, but haven't found the answer(*) to the following: When should one specify LazyLoad, LazyData, and ZipData? And what is the default if they are left unspecified? (*)Except that 1) If the package you are writing uses the m

Re: [Rd] slots of type "double"

2007-11-14 Thread Prof Brian Ripley
On Tue, 13 Nov 2007, Prof Brian Ripley wrote: > On Tue, 13 Nov 2007, John Chambers wrote: > >> What's the proposal here? To eliminate "double" as a class? No objection > > Eliminate "double" and "single". > >> from this corner. As I remember, it was put in early in the >> implementation of met