Re: [R] help with installing R packages on Mac : these packages are downloaded but not compiled

2022-03-23 Thread Bogdan Tanasa
Thank you Jeff. Well, the same messages I do receive not only I do install "tidyverse" but also any other packages from BioConductor ; specifically, the packages are downloaded but not compiled and not installed. I believe that it is a more global R issue with Mac Monterey, although I do not kno

Re: [R] help with installing R packages on Mac : these packages are downloaded but not compiled

2022-03-23 Thread Jeff Newmiller
Tidyverse has dozens of dependencies... and when a dependency fails to install then you often need to install it explicitly... the automatic dependency algorithm doesn't seem to work robustly. Carefully read your error messages... it looks like you should start by installing backports. On Marc

Re: [R] print only a few lines of an object

2022-03-23 Thread Naresh Gurbuxani
Sent from my iPhone > On Mar 23, 2022, at 5:37 PM, David Carlson via R-help > wrote: > > You can set the "max.print" option to something other than the default > value of 9, e.g. options(max.print=50). The number is not lines, > or characters as far as I can tell. For example setting max

Re: [R] print only a few lines of an object

2022-03-23 Thread John Fox
Dear Jeff, On 2022-03-23 3:36 p.m., Jeff Newmiller wrote: After-thought... Why not just use head() and tail() like normal R users do? head() and tail() are reasonable choices if there are many rows, but not if there are many columns. My first thought was your previous suggestion to redefin

Re: [R] print only a few lines of an object

2022-03-23 Thread Bert Gunter
Well, that depends whether the object has/inherits from a class for which there is a suitable method for head/tail and for printing the result. So I think your before-thought applies :-) Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into i

Re: [R] functions st_transform and st_point

2022-03-23 Thread Bert Gunter
This is a good site for such searches: https://rdrr.io/ Searching on "st_point" there says it's in the 'geotidy' package on github. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County

Re: [R] panel.rect and log scale in lattice plot

2022-03-23 Thread Garbade, Sven via R-help
using trellis.last.object()$y.scales$log helps a lot, thanks! I now check whether data were transformed and apply an appropriate transformation if needed. Maybe it helps when current.panel.limit() has information about transformations, so someone doesn't need to call 'trellis.last.object()', too

Re: [R] panel.rect and log scale in lattice plot

2022-03-23 Thread Deepayan Sarkar
On Wed, Mar 23, 2022 at 4:08 PM Ivan Krylov wrote: > > On Wed, 23 Mar 2022 09:38:34 + > "Garbade, Sven via R-help" wrote: > > >cpl <- current.panel.limits() > > If you str() the return value of current.panel.limits() from the panel > function with log-scaling enabled, you can see

[R] panel.rect and log scale in lattice plot

2022-03-23 Thread Garbade, Sven via R-help
Dear all, I posted this on Stack Overflow, but there is no response, so I try it here again. I'm wondering about how to draw a highlighted rectangle with log y-axis in a trellis/lattice plot. My idea was to use panel.rect(), which works without a log scale: library(lattice) set.seed(1) y