[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: [R-pkg-devel] NOTE or Information?

2023-11-28 Thread Enrico Schumann
writing documentation. Is this a bug in > rlang and the mask part of the message will go away > when it is fixed? > > Thanks, Göran > A `%||%` operator has been added to R-devel, and hence the warning about masking: https://github.com/r-devel/r-svn/commit/aa23547f2c5a80752194647c81

Re: [R-pkg-devel] 2 Return values for 2 Functions

2023-09-26 Thread Enrico Schumann
}{result D} } "Writing R Extensions" says not to use \describe environments; see https://cran.r-project.org/doc/manuals/R-exts.html#index-_005cvalue : , | Note that \value is implicitly a \describe environment, so | that environment s

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

2023-08-04 Thread Enrico Schumann
## [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: [R-pkg-devel] Warning 'as.data.frame.POSIXct()' is deprecated

2023-07-06 Thread Enrico Schumann
> >> this >> >> warning but no luck so far. I see R NEWS >> >> <https://cran.r-project.org/doc/manuals/r-release/NEWS.html> mentions >> >> updates to POSIXct related objects several times in the past year but >> >> those >> >> seem to be different issues. >> >> >> >> Best, >> >> >> >> Vincent >> >> >> >> [[alternative HTML version deleted]] >> >> >> >> __ >> >> R-package-devel@r-project.org mailing list >> >> https://stat.ethz.ch/mailman/listinfo/r-package-devel >> > >> > __ >> > R-package-devel@r-project.org mailing list >> > https://stat.ethz.ch/mailman/listinfo/r-package-devel >> > > [[alternative HTML version deleted]] > > __ > R-package-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-package-devel -- Enrico Schumann Lucerne, Switzerland http://enricoschumann.net __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel

Re: [R-pkg-devel] Good practice for database with utf-8 string in package

2021-09-17 Thread Enrico Schumann
rs. However, non-ASCII character strings may not be usable in some locales and may display incorrectly in others." So you could try to use such escapes, e.g. stringi::stri_escape_unicode("Hernández-Montoya") ## [1] "Hern\\u00e1ndez-Montoya" -- Enrico Schumann Lucerne, Switzerland http://enricoschumann.net __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-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: [R-pkg-devel] speeding up package code/build/test cycle

2021-06-25 Thread Enrico Schumann
el comfortable with Emacs (I have a hunch you do), then ESS has functionality that might help: http://ess.r-project.org/Manual/ess.html#Developing-with-ESS and in particular http://ess.r-project.org/Manual/ess.html#Namespaced-Evaluation -- Enrico Schumann L

Re: [R-pkg-devel] CRAN check texi2dvi failure

2021-01-09 Thread Enrico Schumann
ce. Maybe using \url in the vignette could fix the error? kind regards Enrico [*] R version 4.0.3 (2020-10-10) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 20.10 -- Enrico Schumann Lucerne, Switzerland http://enricoschumann.net __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel

Re: [R-pkg-devel] How to remove rJava from Ecfun when it's not called directly or indirectly

2020-10-11 Thread Enrico Schumann
ames ... OK > * checking whether package 'Ecfun' can be installed ... ERROR > Installation failed. > See > 'C:/Users/spenc/Documents/R/Ecfun/Ecfun.Rcheck/00install.out' > for details. > * DONE > Status: 1 ERROR > Hello Spencer Just a wild guess: the CRAN version of y

Re: [R-pkg-devel] R package which creates a directory in the user home dir

2019-10-17 Thread Enrico Schumann
nload data from somewhere for their users. They simply ask the user (or rather let the user specify) if and where to store the data. kind regards Enrico -- Enrico Schumann Lucerne, Switzerland http://enricoschumann.net __ R-package-devel@r-project.o

Re: [Rd] Producing different text formats in R

2019-08-08 Thread Enrico Schumann
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.75

Re: [Rd] install packages with missing pkg argument

2019-07-29 Thread Enrico Schumann
aving 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
>> 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: [R-pkg-devel] duplicate function during build

2016-07-27 Thread Enrico Schumann
e source of the >>>> problem. >>>> >>>> Question: Has anyone created a script to catch such duplicate functions >>>> from different files during build? I think a warning message that there >>>> are duplicate functions could save some time

Re: [R-pkg-devel] relation between vignettes and help files

2016-07-13 Thread Enrico Schumann
tural to reference the vignette from the > package help. > > Thanks. > Ross Boylan I think this was discussed very recently on R-help: https://stat.ethz.ch/pipermail/r-help/2016-June/439867.html -- Enrico Schumann Lucerne, Switzerland http://enricoschumann.net

Re: [Rd] Problem with build and check

2014-11-12 Thread Enrico Schumann
] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base Terry T. -- Enrico Schumann Lucerne, Switzerland http://enricoschumann.net __ R-devel@r-project.org mailing

[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 Schumann Lucerne, Switzerland http