[Rd] nls with algorithm = "port", starting values

2007-04-16 Thread Katharine Mullen
The documentation for nls says the following about the starting values: start: a named list or named numeric vector of starting estimates. Since R 2.4.0, when 'start' is missing, a very cheap guess for 'start' is tried (if 'algorithm != "plinear"'). It may be a good idea to d

[Rd] Sweave.sh shell script on CRAN

2007-04-16 Thread Gregor Gorjanc
Dear developeRs, Martin Maechler has suggested that I resend this email to R-devel instead to R-packages for further comments and potential availability for Windows. -- I have uploaded my Sweave (bash) shell script on CRAN. It i

Re: [Rd] how to control which version of a package library() installs?

2007-04-16 Thread Hin-Tak Leung
Prof Brian Ripley wrote: > > We should try to explain this, but there is another level of complexity. > If a package has compiled code, unloading the namespace is unlikely to > unload the DLL (it would need to be done explicitly in .onUnload). > And even then, as I understand it there are OSes o

Re: [Rd] Sweave.sh shell script on CRAN

2007-04-16 Thread Duncan Murdoch
On 4/16/2007 7:01 AM, Gregor Gorjanc wrote: > Dear developeRs, > > Martin Maechler has suggested that I resend this email to R-devel > instead to R-packages for further comments and potential availability > for Windows. > > -- >

Re: [Rd] Sweave.sh shell script on CRAN

2007-04-16 Thread Gregor Gorjanc
Duncan Murdoch wrote: >> I do not have any experience with use of (bash) shell scripts under >> Windows. Sweave.sh can be used with Cygwin, but I am not sure how to use >> shell script without Cygwin. I noticed that some "scripts" in R*/bin >> directory on our Windows machine are perl (build, check

Re: [Rd] Sweave.sh shell script on CRAN

2007-04-16 Thread Gabor Grothendieck
On Windows sweave.bat is a Windows XP batchfile that will run sweave and then latex and then display the file on screen. Issuing the command sweave without args from the Windows command line gives info on how to use it. The batchfiles home page is: http://code.google.com/p/batchfiles/ The p

Re: [Rd] Sweave.sh shell script on CRAN

2007-04-16 Thread Gregor Gorjanc
Gabor Grothendieck wrote: > On Windows sweave.bat is a Windows XP batchfile that will run sweave > and then latex and then display the file on screen. Issuing the command > sweave without args from the Windows command line gives info on how to > use it. > Nice to see windows "equivalent". Howev

Re: [Rd] Sweave.sh shell script on CRAN

2007-04-16 Thread Duncan Murdoch
On 4/16/2007 7:53 AM, Gregor Gorjanc wrote: > Duncan Murdoch wrote: >>> I do not have any experience with use of (bash) shell scripts under >>> Windows. Sweave.sh can be used with Cygwin, but I am not sure how to use >>> shell script without Cygwin. I noticed that some "scripts" in R*/bin >>> direc

Re: [Rd] Sweave.sh shell script on CRAN

2007-04-16 Thread Gregor Gorjanc
Gabor Grothendieck wrote: ... > If by "Sweave in SVN" you are referring to sweave.bat in the batchfiles > distribution then its not a shell file; rather, its a Windows batch file. Nope. I meant Sweave.sh in R SVN. Gregor __ R-devel@r-project.org mailin

Re: [Rd] Sweave.sh shell script on CRAN

2007-04-16 Thread Duncan Murdoch
On 4/16/2007 10:13 AM, Gabor Grothendieck wrote: > On 4/16/07, Duncan Murdoch <[EMAIL PROTECTED]> wrote: >> On 4/16/2007 7:53 AM, Gregor Gorjanc wrote: >> > Duncan Murdoch wrote: >> >>> I do not have any experience with use of (bash) shell scripts under >> >>> Windows. Sweave.sh can be used with Cy

Re: [Rd] Sweave.sh shell script on CRAN

2007-04-16 Thread Gabor Grothendieck
On 4/16/07, Gregor Gorjanc <[EMAIL PROTECTED]> wrote: > Gabor Grothendieck wrote: > > On Windows sweave.bat is a Windows XP batchfile that will run sweave > > and then latex and then display the file on screen. Issuing the command > > sweave without args from the Windows command line gives info o

Re: [Rd] Sweave.sh shell script on CRAN

2007-04-16 Thread Gabor Grothendieck
On 4/16/07, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > On 4/16/2007 7:53 AM, Gregor Gorjanc wrote: > > Duncan Murdoch wrote: > >>> I do not have any experience with use of (bash) shell scripts under > >>> Windows. Sweave.sh can be used with Cygwin, but I am not sure how to use > >>> shell script w

Re: [Rd] Sweave.sh shell script on CRAN

2007-04-16 Thread Gregor Gorjanc
Duncan Murdoch wrote: ... >> Maybe I got this totally wrong. Say someone who uses Windows finds R and >> installs it via setup file. Can he/she launch the folowing without >> having Perl and/or sh.exe? >> >> R CMD script whateverOption > > No. Installing a binary package has a pure R implementati

Re: [Rd] Sweave.sh shell script on CRAN

2007-04-16 Thread Gregor Gorjanc
Duncan Murdoch wrote: >> Can you just clarify what the dependencies are for >> >> Rcmd sweave >> >> where Rcmd is the Rcmd command distributed with R that is run >> from the Windows command line. Does that require perl or other >> tools to run? > > That needs sh.exe, not Perl. But it's just the

Re: [Rd] nls with algorithm = "port", starting values

2007-04-16 Thread Prof Brian Ripley
I think we should fix the code to do as the documentation says: all it needs is an unlist(). Thank you for the examples, which helped test this. On Mon, 16 Apr 2007, Katharine Mullen wrote: > The documentation for nls says the following about the starting values: > > start: a named list or name

Re: [Rd] Sweave.sh shell script on CRAN

2007-04-16 Thread Gabor Grothendieck
On 4/16/07, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > On 4/16/2007 10:13 AM, Gabor Grothendieck wrote: > > On 4/16/07, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > >> On 4/16/2007 7:53 AM, Gregor Gorjanc wrote: > >> > Duncan Murdoch wrote: > >> >>> I do not have any experience with use of (bash) s

[Rd] Documentation bug for sys.parent

2007-04-16 Thread Jeffrey Horner
In R-trunk version 41191, the 'Value' section of sys.parent.Rd explains that sys.parent() returns an environment, which is wrong. The 'Details' sections explains that it returns the number of the parent frame, etc. Here's a fix: Index: src/library/base/man/sys.parent.Rd

[Rd] args / formals on primitives

2007-04-16 Thread Thomas Friedrichsmeier
On SVN revision 41087: ?args has this example line: args(c)# -> NULL (c is a 'primitive' function) The comment seems out of date, as args(c) does in fact have a non-NULL return value: args(c) # function (..., recursive = FALSE) # NULL While at it, I was wondering, why formals(c)

[Rd] Documentation update to R-lang.texi

2007-04-16 Thread Jeffrey Horner
Section 4.3.4 of R-lang.texi version 41191 in the paragraph that starts "When h(3) is..." explains that x and y are unbound variables in the function body of g in this example: f <- function(x) { y <- 10 g <- function(x) x + y return(g) } h <- f()

Re: [Rd] Sweave.sh shell script on CRAN

2007-04-16 Thread Gabor Grothendieck
On 4/16/07, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > On 4/16/07, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > > On 4/16/2007 10:13 AM, Gabor Grothendieck wrote: > > > On 4/16/07, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > > >> On 4/16/2007 7:53 AM, Gregor Gorjanc wrote: > > >> > Duncan Murdo

Re: [Rd] save() and interrupts

2007-04-16 Thread Bill Dunlap
On Sun, 15 Apr 2007, Henrik Bengtsson wrote: > On 4/15/07, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: > > On Sun, 15 Apr 2007, Henrik Bengtsson wrote: > > > > > are there any (cross-platform) specs on what the saved filed is if > > > save() is interrupted, e.g. by a user interrupt? It could be

Re: [Rd] save() and interrupts

2007-04-16 Thread Luke Tierney
On Mon, 16 Apr 2007, Bill Dunlap wrote: > On Sun, 15 Apr 2007, Henrik Bengtsson wrote: > >> On 4/15/07, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: >>> On Sun, 15 Apr 2007, Henrik Bengtsson wrote: >>> are there any (cross-platform) specs on what the saved filed is if save() is interrupt

Re: [Rd] save() and interrupts

2007-04-16 Thread Henrik Bengtsson
On 4/16/07, Luke Tierney <[EMAIL PROTECTED]> wrote: > On Mon, 16 Apr 2007, Bill Dunlap wrote: > > > On Sun, 15 Apr 2007, Henrik Bengtsson wrote: > > > >> On 4/15/07, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: > >>> On Sun, 15 Apr 2007, Henrik Bengtsson wrote: > >>> > are there any (cross-pla