Re: [R] R CMD check vs RStudio check

2024-05-03 Thread Ivan Krylov via R-help
В Fri, 3 May 2024 19:45:08 + "Boylan, Ross via R-help" пишет: > & $R CMD check . > * checking for file './DESCRIPTION' ... ERROR > Required fields missing or empty: > 'Author' 'Maintainer' You're checking a source package directory. This could work, but it's much easier and more reliable

[R] R CMD check vs RStudio check

2024-05-03 Thread Boylan, Ross via R-help
I am trying to figure out why checking my package is deleting my inst/doc/ directory when I do it in RStudio. Along the way I've hit another puzzle. In RStudio the check runs and is mostly OK, aside from the deletion. But when I try with vanilla R, the check fails almost immediately:

Re: [R] Get a copy of a matrix only for TRUE entries of a matching size boolean matrix?

2024-05-03 Thread DynV Montrealer
It's exactly what I was looking for, thanks. I'm replying to the whole list so others can skip this question, to not waste time on it. Bonne fin de journée de Montréal (nous sommes le matin ici) On Fri, May 3, 2024 at 10:30 AM Marc Girondot wrote: > Is it what you want ? > mat_letters <-

Re: [R] Get a copy of a matrix only for TRUE entries of a matching size boolean matrix?

2024-05-03 Thread Marc Girondot via R-help
Is it what you want ? mat_letters <- matrix(data=c('A', 'B', 'C', 'D'), ncol=2, byrow=TRUE) mat_bools <- matrix(data=c(FALSE, TRUE, TRUE, FALSE), ncol=2, byrow=TRUE) ifelse(mat_bools, mat_letters, "") ifelse(mat_bools, mat_letters, NA) > ifelse(mat_bools, mat_letters, "") [,1] [,2] [1,]

Re: [R] Get a copy of a matrix only for TRUE entries of a matching size boolean matrix?

2024-05-03 Thread Ben Bolker
In two steps: result <- matrix(NA_character_, nrow=nrow(mat_letters), ncol =ncol(mat_letters)) result[mat_bools] <- mat_letters[mat_bools] On 2024-05-03 8:47 a.m., DynV Montrealer wrote: Is there a way to get a copy of a matrix only for TRUE entries of a matching size boolean matrix? For

[R] Using intervals() function for nlme model - Statistics Lab ETHZ

2024-05-03 Thread Bielakova Tatiana
Dear members of the R-Help Team, we are reaching out to you with a question regarding using intervals() to create inference for nlme()

[R] Get a copy of a matrix only for TRUE entries of a matching size boolean matrix?

2024-05-03 Thread DynV Montrealer
Is there a way to get a copy of a matrix only for TRUE entries of a matching size boolean matrix? For *example*: > mat_letters <- matrix(data=c('A', 'B', 'C', 'D'), ncol=2, byrow=TRUE) > mat_letters [,1] [,2] [1,] "A" "B" [2,] "C" "D" > mat_bools <- matrix(data=c(FALSE, TRUE, TRUE, FALSE),

Re: [R] grDevices segfault when building R4.4.0 on RHEL 9.1.

2024-05-03 Thread Ivan Krylov via R-help
Dear Miguel Esteva, I couldn't get a Red Hat "ubi9" container to install enough dependencies to build R. Is there a way to reproduce your setup on a virtual machine somewhere? On Fri, 3 May 2024 00:42:43 + Miguel Esteva via R-help wrote: > *** caught segfault *** > > address

[R] grDevices segfault when building R4.4.0 on RHEL 9.1.

2024-05-03 Thread Miguel Esteva via R-help
Hi all, I seem to be getting segfaults when attempting to build R 4.4.0 on RHEL 9.1 (5.14.0-162.23.1.el9_1.x86_64). Interestingly, it seems to build ok on Rocky 9.1 and 9.3. This is the trace: make[3]: Entering directory '/home/esteva.m/R/R-4.4.0/src/library/grDevices' building package