Re: [Rd] Possible bug in heatmap()?

2020-06-21 Thread Kurt Hornik
> Viechtbauer, Wolfgang (SP) writes: Should be fixed now. Best -k > Dear All, > There might be a bug in heatmap(): > x <- matrix(rnorm(10*5), 10, 5) > heatmap(x, labCol=1:5) > Error in axis(1, 1L:nc, labels = labCol, las = 2, line = -0.5, tick = 0, : > 'at' and 'labels' lengths

Re: [Rd] Possible Bug: file.exists() Function. Due to UTF-8 Encoding differences on Windows between R 4.0.1 and R 3.6.3?

2020-06-21 Thread Yihui Xie
Hi Tomas, I received a report about R 4.0.0 in the knitr package (https://github.com/yihui/knitr/issues/1840), and I think it is related to the issue here. I created a minimal reproducible example below: owd = setwd(tempdir()) z = 'K\u00e4sch.txt' file.create(z) list.files()

[Rd] Possible bug in heatmap()?

2020-06-21 Thread Viechtbauer, Wolfgang (SP)
Dear All, There might be a bug in heatmap(): x <- matrix(rnorm(10*5), 10, 5) heatmap(x, labCol=1:5) Error in axis(1, 1L:nc, labels = labCol, las = 2, line = -0.5, tick = 0, : 'at' and 'labels' lengths differ, 5 != 10 Works fine under 4.0.1. Looking at the code from 4.0.1 vs. Rdevel, esp.

Re: [R-pkg-devel] Rbuildignore a file type from a top level directory only

2020-06-21 Thread Jan Gorecki
Works great, thanks On Sun, Jun 21, 2020 at 4:21 PM Hugh Parsonage wrote: > > Perhaps > > ^[^/]+\.R$ > > On Sun, 21 Jun 2020 at 22:31, Jan Gorecki wrote: > > > > Hi R developers, > > > > What is the proper way to define an entry in .Rbuildignore file to > > exclude *.R files from a top level

Re: [R-pkg-devel] Rbuildignore a file type from a top level directory only

2020-06-21 Thread Hugh Parsonage
Perhaps ^[^/]+\.R$ On Sun, 21 Jun 2020 at 22:31, Jan Gorecki wrote: > > Hi R developers, > > What is the proper way to define an entry in .Rbuildignore file to > exclude *.R files from a top level directory of R package? > Using ^.*\.R$ excludes every R script, including those in