[Rd] Parts of test in datetime3.R not working

2023-06-15 Thread Korpela Mikko
In test file datetime3.R, one call to stopifnot() has an argument named "expr" which should probably be "exprs". There are three tests wrapped in braces of which only the last one, "omitted 195 entries", is currently checked. Proposed patch: --- tests/datetime3.R (revision 84544) +++ tests/da

[Rd] Possible bug in package installation when R_ICU_LOCALE is set

2018-02-07 Thread Korpela Mikko (MML)
On a Windows computer (other platforms not tested), installing a package from source may fail if the environment variable R_ICU_LOCALE is set, depending on the package and the locale. For example, after setting R_ICU_LOCALE to "fi_FI", install.packages("seriation", type = "source") (package ve

[Rd] Typo in src/extra/tzone/registryTZ.c

2018-03-26 Thread Korpela Mikko (MML)
I stumbled upon a typo in a time zone name: Irtutsk should be Irkutsk. A patch is attached. I also checked that this is the only bug of its kind in this file, i.e., all the other Olson time zones occurring in the file can also be found in Unicode Common Locale Data Repository. - Mikko Korpela Ind

[Rd] Possible \uxxx typos in documents

2018-04-11 Thread Korpela Mikko (MML)
I found a few occurrences of "\uxxx" which should probably have one more "x". A patch follows: Index: doc/manual/R-ints.texi === --- doc/manual/R-ints.texi (revision 74580) +++ doc/manual/R-ints.texi (working copy) @@ -1277,

Re: [Rd] Possible bug in package installation when R_ICU_LOCALE is set

2018-04-25 Thread Korpela Mikko (MML)
Vastaanottaja: Korpela Mikko (MML) Kopio: r-devel@r-project.org Aihe: Re: [Rd] Possible bug in package installation when R_ICU_LOCALE is set I can reproduce this on Linux, so it is not Windows-specific. > sessionInfo() R version 3.4.3 (2017-11-30) Platform: x86_64-pc-linux-gnu (64-bit) Running un

[Rd] Improvement to documentation in dput.Rd

2018-09-28 Thread Korpela Mikko (MML)
If the "Matrix" package is attached, 'example(dget)' fails: > library(Matrix) > example(dget) dget> fil <- tempfile() dget> ## Write an ASCII version of function mean to our temp file dget> dput(mean, fil) dget> ## And read it back into 'bar' dget> bar <- dget(fil) Error in

[Rd] Typo in grep.Rd

2018-12-08 Thread Korpela Mikko (MML)
There is a small typo in file 'src/library/base/man/grep.Rd'. Current text: ## collation order is aAbBcCdEe ... Suggested text ("D" instead of "E"): ## collation order is aAbBcCdDe ... Best regards, - Mikko Korpela __ R-devel@r-project.org mailing li

[Rd] Possible encoding bug in sub()

2018-12-08 Thread Korpela Mikko (MML)
I noticed that sub() gives unexpected results for the following test case. In the test case, the (initial) input is ASCII but the replacements are UTF-8. The first sub() produces an UTF-8 result with an "unknown" Encoding. This makes the result garbled in Windows (no UTF-8 locale there). The second

Re: [Rd] Possible encoding bug in sub()

2018-12-10 Thread Korpela Mikko (MML)
Thanks for the confirmation. The bug report is now online at https://bugs.r-project.org/bugzilla/show_bug.cgi?id=17509 - Mikko -Original Message- From: Martin Maechler [mailto:maech...@stat.math.ethz.ch] Sent: Monday, December 10, 2018 12:09 PM To: Korpela Mikko (MML) Cc: r-devel@r

Re: [Rd] PDF generation issue from manual page

2020-02-12 Thread Korpela Mikko (MML)
Hi Neonira! The \blacktriangleright macro is defined in LaTeX package "amssymb". According to Writing R Extensions (section 2.6 Mathematics), "only basic LaTeX can be used, there being no provision to specify LaTeX style files such as the AMS extensions" (in Rd files). Best, - Mikko -Alk

[Rd] Typos in ?regex

2017-12-22 Thread Korpela Mikko (MML)
I found three little typos in the ?regex manual. Apologies for the lack of a diff, as the utility is not (yet) installed on this machine. 1. "There is a also" should probably be "There is also". 2. In the list of functions following "This section covers the regular expressions"..., "grep" appear

[Rd] make check fails due to NA / NaN mismatch

2020-08-30 Thread Korpela Mikko (MML)
It seems there is a problem in tests/d-p-q-r-tst-2.R (R-devel r79091): NA / NaN mismatch is not allowed by a test on lines 590--592, but the comment suggests otherwise. A run of "make check" fails there when tested on a Raspberry Pi with Raspberry Pi OS (based on Debian Buster): all 'NaN' is exp

Re: [Rd] make check fails due to NA / NaN mismatch

2020-08-31 Thread Korpela Mikko (MML)
))) { ## allow NA/NaN mismatch in these cases for now: stop(" .. not giving expected NA/NaN's ") } where the test is less forgiving, both with respect to the conditions and the type of "nag" (cat vs stop). - Mikko -Alkuperäinen viesti- Lähettäjä: Mar

[Rd] Printing Unicode escapes with 6 digits may be problematic

2020-12-14 Thread Korpela Mikko (MML)
A recent R-devel commit introduces a change in the way non-printable Unicode characters are shown as an escape code. Whereas large code points were previously printed using an escape code of 8 hexadecimal digits, with initial zeros, the present code (tested with R-devel r79623 on Ubuntu Linux) o

Re: [Rd] Printing Unicode escapes with 6 digits may be problematic

2021-01-07 Thread Korpela Mikko (MML)
Lähettäjä: R-devel Puolesta Korpela Mikko (MML) Lähetetty: maanantai 14. joulukuuta 2020 11.51 Vastaanottaja: r-devel Aihe: [Rd] Printing Unicode escapes with 6 digits may be problematic A recent R-devel commit introduces a change in the way non-printable Unicode characters are shown as an e