[Rd] Small typo in Sweave.Rnw

2023-12-11 Thread Enrico Schumann
In the first paragraph of Sweave.Rnw (./src/library/utils/vignettes/Sweave.Rnw), it reads for literate programming \cite{fla:Knuth:1984}. but probably should be for literate programming \citep{fla:Knuth:1984}. ^ kind regards Enrico -- Enrico

Re: [Rd] feature request: optim() iteration of functions that return multiple values

2023-08-04 Thread Enrico Schumann
data) ## $par ## [1] 1.000260 1.000506 ## ## $value ## [1] 8.825241e-08 ## ## $counts ## function gradient ## 195 NA ## ## data$i ## 195 plot(data$fun.value[1:data$i]) -- Enrico Schumann Lucerne, Switzerland http://enricoschumann.net __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] order of operations

2021-08-27 Thread Enrico Schumann
’ and the left assignment plus minus operators ‘<- - = <<-’ group right to left, all other operators group left to right. That is [...] 1 - 1 - 1 is -1" which would imply 2. [1] https://cran.r-project.org/doc/manuals/r-release/R-lang.html#Infix-and-prefix-ope

Re: [Rd] Producing different text formats in R

2019-08-08 Thread Enrico Schumann
e C++ code Lluís> used to generate myfile_cpp.txt. Lluís> Thank you in advance, Lluís> Lluís Hurtado-Gil In your R file, scientific notation is used: R: 9 26.5 174.5 96.5 1e+05 26.5 174.5 96.75 11 26.5 174.5 97 cpp: 9 26.5 174.5 96.5 10 26.5 174.5 96

Re: [Rd] install packages with missing pkg argument

2019-07-29 Thread Enrico Schumann
argument, and having it do nothing silently when the argument is of length Antoine> zero, would make more sense. Antoine> Best regards, Antoine> Antoine -- Enrico Schumann Lucerne, Switzerland http://enricoschumann.net __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] A trap for young players with the lapply() function.

2017-03-29 Thread Enrico Schumann
gt; NULL >> >> But who would have a function with `.x` as an argument? > > Indeed. It struck me that a possible workaround would be to change > the name of the first argument of lapply() from "X" to ".X". No-one > would have a function with an argument names ".X" --- at least I > wouldn't, so this would solve the problem for me. > > It seems to me that this change could be made without breaking anything. > But perhaps I am engaging in my usual PollyAnna-ish optimism! :-) > > cheers, > > Rolf -- Enrico Schumann Lucerne, Switzerland http://enricoschumann.net __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Problem with build and check

2014-11-12 Thread Enrico Schumann
; R Under development (unstable) (2014-10-30 r66907) > Platform: i686-pc-linux-gnu (32-bit) > > locale: > [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C > [3] LC_TIME=en_US.UTF-8LC_COLLATE=C > [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 > [7] LC_PAPER=en_US.UTF

[Rd] minor typo in docs for 'sort'

2013-05-23 Thread Enrico Schumann
Dear all, on the help page for '?sort': 'Method "shell" uses Shellsort ([...] from Sedgewick (1996))' but in the references it is Sedgewick (1986). 1986 seems correct: http://dx.doi.org/10.1016/0196-6774(86)90001-5 Thank you, Enrico -- Enrico Schu