[Rd] Rd2pdf ignores tabs but not trailing spaces

2018-11-21 Thread Abs Spurdle
hi all R CMD Rd2pdf ignores tabs in the usage section. However, I just discovered that it doesn't ignore trailing spaces (before lines). I'm assuming that the same thing happens when the online man pages are produced. I didn't check what happens in the examples section. I think it would be better

Re: [Rd] Subsetting row in single column matrix drops names in resulting vector

2018-11-21 Thread Dmitriy Selivanov
Hi Rui. Thanks for answer, I'm aware of drop = FALSE option. Unfortunately it doesn't resolve the issue - I'm expecting to get a vector, not a matrix . ср, 21 нояб. 2018 г. в 20:54, Rui Barradas : > Hello, > > Use drop = FALSE. > > a[1, , drop = FALSE] > # col1 > #row11 > > > Hope this he

Re: [Rd] Subsetting row in single column matrix drops names in resulting vector

2018-11-21 Thread Rui Barradas
Hello, Use drop = FALSE. a[1, , drop = FALSE] # col1 #row11 Hope this helps, Rui Barradas Às 16:51 de 21/11/2018, Dmitriy Selivanov escreveu: Hello here. I'm struggling to understand R's subsetting behavior in couple of edge cases - subsetting row in a single column matrix and subse

[Rd] Subsetting row in single column matrix drops names in resulting vector

2018-11-21 Thread Dmitriy Selivanov
Hello here. I'm struggling to understand R's subsetting behavior in couple of edge cases - subsetting row in a single column matrix and subsetting column in a single row matrix. I've read R's docs several times and haven't found answer. Consider following example: a = matrix(1:2, nrow = 2, dimnam

Re: [Rd] problematic dev.off() after running examples without plots

2018-11-21 Thread Thierry Onkelinx via R-devel
Dear Martin, Thanks for the feedback. After some more digging, I found that the problem was caused by a function which we imported from another package. That function closes open devices as a side-effect. Best regards, ir. Thierry Onkelinx Statisticus / Statistician Vlaamse Overheid / Governmen

Re: [Rd] problematic dev.off() after running examples without plots

2018-11-21 Thread Martin Maechler
> Thierry Onkelinx via R-devel > on Tue, 20 Nov 2018 14:16:20 +0100 writes: > Dear all, When running R CMD check on our package, we get > an error on the examples. > Error in grDevices::dev.off() : > cannot shut down device 1 (the null device) > None of the exa