Re: [Rd] table() and as.character() performance for logical values

2025-04-10 Thread Sebastian Meyer
the more consistent undocumented behaviour from before the performance patch. Maybe something to consider for 4.5.1. Sebastian Meyer Am 09.04.25 um 08:26 schrieb Suharto Anggono Suharto Anggono via R-devel: With the change to 'factor', factor(1L, levels = TRUE) doesn'

Re: [Rd] table() and as.character() performance for logical values

2025-03-24 Thread Sebastian Meyer
ot;: set.seed(1) C <- sample(c("no", "yes"), 10^7, replace = TRUE) F <- as.factor(C) L <- F == "yes" I <- as.integer(L) N <- as.numeric(I) ## Median system.time(table(.)) in ms: ## table(F) 256 ## table(I) 384 #

Re: [Rd] R-devel (87913) compilation fails at "make vignettes"; R-4-4 completes and fails "make check"

2025-03-11 Thread Sebastian Meyer
file.common:208: test-Examples] Error 2 make[1]: *** [Makefile.common:193: test-all-basics] Error 1 make: *** [Makefile:333: check-devel] Error 2 ``` There should be a file utils-Ex.Rout.fail (I think in tests/Examples/). What does it say about the error? Hope this helps! Sebastian Meyer

Re: [Rd] 87668 fails on Windows 10 with "pdflatex not found"

2025-01-29 Thread Sebastian Meyer
R-patched or render a minimal LaTeX document using tools::texi2pdf(), to see if the error isn't just related to your LaTeX setup. The error suggests that whatever program is set to be PDFLATEX on your system, usually pdflatex, cannot be found: smells like a PATH issue. Best regards,

Re: [Rd] Small typo in nlme documentation

2025-01-07 Thread Sebastian Meyer
Thanks. Fixed in the trunk. Sebastian Meyer Am 07.01.25 um 07:28 schrieb Roland Fuß via R-devel: Hi, I've noticed a small typo in `help("varClasses", "nlme")`. Contrary to what the "Note" says, variance classes need a method for `Initialize` (cap

Re: [Rd] Typo in DateTimeClasses.Rd

2024-10-10 Thread Sebastian Meyer
Thanks, fixed in the trunk. Sebastian Meyer Am 10.10.24 um 21:53 schrieb Rui Barradas: Hello, When following a thread that started today [1], I read the documentation for DateTimeClasses {base} more carefully and noticed a typo in the "Details on POSIXlt" section, in the

Re: [Rd] transform

2024-08-27 Thread Sebastian Meyer
Am 27.08.24 um 11:55 schrieb peter dalgaard: Yes. A quirk, rather than a bug I'd say. One issue is that the internal logic of transform() relies on e <- eval(substitute(list(...)), `_data`, parent.frame()) tags <- names(e) so untagged entries in ... will not be included. ... unless

Re: [Rd] False positives in check for lost braces (in tools::checkRd())

2023-11-07 Thread Sebastian Meyer
issing an escape for the macro name). Rdpack's fork of tools::deparseLatex() is being updated to drop the braces that cause the note. I have modified the check code to ignore these cases for now (r85491). Best regards, Sebastian Meyer Am 07.11.23 um 17:13 schrieb Martin Be

Re: [Rd] numeric_version doesn't like numeric versions anymore?

2023-07-06 Thread Sebastian Meyer
this context: R> package_version("1.3") > 1.20 [1] TRUE This now warns for a good reason in my opinion. Best regards, Sebastian Meyer Am 06.07.23 um 08:37 schrieb Dipterix Wang: Dear R devs, I installed the recent devel R to test a package error when I interc

Re: [Rd] Strange error in R CMD check --timings

2023-07-02 Thread Sebastian Meyer
examples. For related reasons, I guess, it already sets the "pager" option on Windows to "console". Alternatively, if the massaged "editor" option called stop() (similar to T and F producing errors), such examples would really need to be conditioned on interactive().

Re: [Rd] restoring LANGUAGE env variable within an R session

2023-06-26 Thread Sebastian Meyer
Translated strings are cached. I'd recommend to use the • New partly experimental Sys.setLanguage() utility, solving the main problem of PR#18055. introduced in R 4.2.0. Best, Sebastian Meyer Am 26.06.23 um 15:15 schrieb Ben Bolker: I was playing around wit

Re: [Rd] transform.data.frame() ignores unnamed arguments when no named argument is provided

2023-03-02 Thread Sebastian Meyer
I also think the implicit check.names=TRUE behaviour should be disabled. In > list2DF(list(`A-1` = 1)) |> transform(B = 2) A.1 B 1 1 2 transforming B should not touch the other columns. I'm less sure about some other forms of undocumented behaviour as described in Comment 6 of th

Re: [Rd] Documentation bug?

2023-02-14 Thread Sebastian Meyer
are corrected there. It has now been removed from ?lm in r83832 in the trunk (ported to R-patched). Sebastian Meyer Am 14.02.23 um 09:31 schrieb GILLIBERT, Andre via R-devel: Dead R developers, In R-devel 2023-02-11 and older R versions, there is a note in the "lm {stats}"

Re: [Rd] R2HTML doesn't split paragraphs originating from \Sexpr[results=rd]

2023-02-13 Thread Sebastian Meyer
preference to "srcref" when reporting the location of Rd problems. Sebastian Meyer Am 05.02.23 um 14:04 schrieb Ivan Krylov: Hello, Here's an example that renders correctly using Rd2txt / Rd2latex / R CMD Rd2pdf, but has problems under Rd2HTML: \name{foo} \title

Re: [Rd] rhub vs. CRAN fedora-*-devel, using armadillo & slapack

2023-01-10 Thread Sebastian Meyer
u're trying to figure out the source of a segfault, or you want to figure out which code triggers a C/C++ breakpoint" HTH! Sebastian Meyer You could possibly also write your own custom reporter that could give timings for each of the tests as they run, but the documents for how to

Re: [Rd] Dropping RHS of a formula using NULL assignment

2021-12-14 Thread Sebastian Meyer
es a "terms" object (a formula with attributes) and uses the same technique internally to remove the response -- if there is one... I.e., be sure that length(f)==3 before dropping the second element. Best regards, Sebastian Meyer However, ?"[" says ‘[’ and

Re: [Rd] How is the environment variable "R_USER" defined?

2021-11-22 Thread Sebastian Meyer
Just a quick thought. R for Windows FAQ 2.14 talks about the home directory: https://cran.r-project.org/bin/windows/base/rw-FAQ.html#What-are-HOME-and-working-directories_003f So maybe HOMEDRIVE and HOMEPATH are involved? Hope this helps. Sebastian Meyer Am 22.11.21 um 17:46 schrieb

Re: [Rd] Bug (?) in vignette handling

2021-10-30 Thread Sebastian Meyer
a clean R session, especially with regard to loaded packages. Changing buildVignettes() to use clean R processes by default (I'd say even if there is only one vignette) should be considered. I'd appreciate seeing this report in Bugzilla to investigate further (and not forget). Best rega

Re: [Rd] Environment setting _R_CHECK_DEPENDS_ONLY_='true'

2021-10-20 Thread Sebastian Meyer
ue R CMD check qra_0.2.4.tar.gz to set the environment variable for this R process. See, e.g., https://en.wikipedia.org/wiki/Environment_variable. Best regards, Sebastian Meyer I’d have expected that the "On most systems . . .” mentioned in the Writing R extensions manual (1.1.3.

Re: [Rd] R 4.1.x make check fails, stats-Ex.R, step factor reduced below minFactor

2021-10-01 Thread Sebastian Meyer
For what it's worth, make check runs OK for me with sessionInfo() R version 4.1.1 Patched (2021-09-30 r80997) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 18.04.6 LTS Matrix products: default BLAS: /home/smeyer/R/base/release/build/lib/libRblas.so LAPACK: /home/smeyer/R/base/re

Re: [Rd] unicode in R documentation

2021-07-13 Thread Sebastian Meyer
Am 13.07.21 um 17:37 schrieb Frederick Eaton: Dear R Team, I am running R from the terminal command line (not RStudio). I've noticed that R has been using Unicode quotes in its documentation for some time, maybe since before I started using it. I am wondering if it is possible to compile the

Re: [Rd] Small Fix: Greatly Increase Clarity/Utility of R Package Help/Manual Overview Pages

2021-06-29 Thread Sebastian Meyer
Just in case others (like me) don't instantly know what this is about. This only affects the html help. Compare the HTML index page for the base package "graphics" https://stat.ethz.ch/R-manual/R-patched/library/graphics/html/00Index.html with the index page for the base package "grDevices" htt

Re: [Rd] R CMD INSTALL warning for S4 replacement functions on R 4.1.0-alpha

2021-04-23 Thread Sebastian Meyer
I can confirm this Rd warning in R-devel (2021-04-23 r80216), but not in R 4.0.5. It happens when installing the static help (INSTALL option --html). The following R code reproduces the warning by creating a tiny test package and then calling relevant internal functions from 'tools': ```R ## cre

Re: [Rd] R 4.0.4 scheduled for February 15

2021-01-21 Thread Sebastian Meyer
Am 21.01.21 um 13:51 schrieb Iñaki Ucar: > Minor question: wouldn't the new pipe syntax be worth a minor version > bump? Yes. The NEWS mention the pipe syntax for R-devel not for R-patched. See the section "CHANGES IN R 4.0.3 patched" in https://stat.ethz.ch/R-manual/R-devel/doc/html/NEWS.html

Re: [Rd] New pipe operator

2020-12-04 Thread Sebastian Meyer
; which would be expanded to something equivalent to the other versions: > but that makes it quite a bit more complicated.  (Maybe _ or \. should > be used instead of ., since those are not legal variable names.) I guess "_" as a placeholder would be difficult to implement precis

Re: [Rd] Some packages have non-POSIX-compliant shell scripts. Implement a CRAN check for bashisms?

2020-11-05 Thread Sebastian Meyer
Your report underlines the importance of the checks implemented by CRAN. In fact, checkbashisms has become an optional part of R CMD check in R 4.0.0, whose NEWS say > R CMD check now optionally checks configure and cleanup scripts for > non-Bourne-shell code ('bashisms'). The R Internals manua

Re: [Rd] The presence/absence of `zone` in POSIXlt depending on time zone as a cause of possible inconsistences?

2020-10-23 Thread Sebastian Meyer
t; "7200" >> str(y) > Named chr [1:11] "19.5111262798309" "27" "18" "23" "9" "120" "5" "296" "1" > "CEST" "7200" > - attr(*, "names")=

Re: [Rd] timezone tests and R-devel

2020-10-23 Thread Sebastian Meyer
the system reports when I login. > > Details: The system (RHEL) I am working on has > $ strings /etc/localtime | tail -n 1 > EST5EDT,M3.2.0,M11.1.0 > $ date +%Z > EDT > $ echo $TZ > US/Eastern > > > > On Fri, Oct 2, 2020 at 9:48 AM Sebastian M

Re: [Rd] timezone tests and R-devel

2020-10-02 Thread Sebastian Meyer
Thank you for the report. In R-devel, all.equal.POSIXt() by default reports inconsistent time zones. Previously, > x <- Sys.time() > all.equal(x, as.POSIXlt(x, tz = "EST5EDT")) would return TRUE. To ignore the time zone attributes in R-devel, the argument 'check.tzone = FALSE' needs to be used.

Re: [Rd] edit() doubles backslashes when keep.source=TRUE

2020-05-15 Thread Sebastian Meyer
I can confirm this changed behaviour. I just compared R-3.6.3 with yesterday's R-devel. Using R-devel, the tempfile opened by the editor (Emacs for me, but shouldn't matter) contains doubled backslashes. This could be related to https://bugs.r-project.org/bugzilla/show_bug.cgi?id=17800 Best rega

Re: [Rd] S3 method dispatch for methods in local environments

2020-05-12 Thread Sebastian Meyer
Dear Wolfgang, I think this new behaviour is related to the following R 4.0.0 NEWS item: > S3 method lookup now by default skips the elements of the search path between > the global and base environments. Your environment "myenv" is attached at position 2 of the search() path and thus now skip

[Rd] R-devel no longer supports Ubuntu 14.04 LTS (insufficient PCRE version)

2015-11-20 Thread Sebastian Meyer
ther PCRE support suffices... configure: error: pcre library and > headers are required Are there any workarounds for this except for manually compiling and installing a more recent version of PCRE from source? Thanks! Sebastian -- University of Zurich Sebastian Meyer Epidemiolog

Re: [Rd] non-differentiable evaluation points in nlminb(), follow-up of PR#15052

2012-09-29 Thread Sebastian Meyer
/2012 2:13 AM, Sebastian Meyer wrote: >> This is a follow-up question for PR#15052 >> <http://bugs.r-project.org/bugzilla3/show_bug.cgi?id=15052> >> >> There is another thing I would like to discuss wrt how nlminb() should >> proceed with NAs. The question is: What would

[Rd] non-differentiable evaluation points in nlminb(), follow-up of PR#15052

2012-09-27 Thread Sebastian Meyer
ncy stop() if it receives NA parameters because nlminb won't pick up courage - regardless of the following return value of the objective function. As far as I would assess the situation, nlminb is currently not capable of optimizing objective functions with non-differentiable points. Best rega

[Rd] using setOldClass() causes warning on unloadNamespace() if the package imports methods

2012-08-29 Thread sebastian . meyer
For the CRAN-package "surveillance", unloadNamespace("surveillance") gives the following warning message: In FUN(X[[2L]], ...) : Created a package name, ‘2012-08-28 22:42:37’, when none found Similar warnings appear for the CRAN-package "solaR" and probably some other packages. I created a d

[Rd] R CMD check . segfault on re-building vignettes

2012-04-30 Thread Sebastian Meyer
## Better Do NOT run -> buffer overflow # file.copy(pkgdir, vd2, recursive=TRUE) ### Can anybody confirm this problem? Of course, a workaround is to run R CMD check from outside the source directory (which is probably the preferred way). Thanks in advance, Sebastian -- Sebastian Meyer D

Re: [Rd] (PR#14066) model.frame error with formula=~1 and na.action=na.fail

2009-11-16 Thread Sebastian Meyer
in package > 'datasets'. Ok. I was not sure about this and just wanted to be on the save side to offer a reproducible example working in a maximum variety of R sessions. Best regards and thank you very much for your intense development of R, Sebastian Meyer