Re: [R] Wayland backend for R

2021-06-23 Thread Phillips Rogfield
/2021 20:26, Robert Knight wrote: > Perhaps software rendering would work. > > |Export RSTUDIO_CHROMIUM_ARGUMENTS="--disable-gpu"| > |/usr/lib/rstudio/bin/rstudio| > > On Wed, Jun 23, 2021, 10:01 AM Phillips Rogfield > mailto:thebudge...@gmail.com>> wrote: > >

Re: [R] How to spot/stop making the same mistake

2021-06-23 Thread Phillips Rogfield
uot;Bloom County" comic strip ) > > > On Wed, Jun 23, 2021 at 8:31 AM Eric Berger <mailto:ericjber...@gmail.com>> wrote: > > In my code, instead of 't', I name a vector of indices with a > meaningful > name, such as idxV, to make it obvious. > > Alternati

[R] Plot NUTS regions with color

2021-06-23 Thread Phillips Rogfield
Dear R-help ML, I have downloaded the NUTS shapefiles from here: https://ec.europa.eu/eurostat/web/gisco/geodata/reference-data/administrative-units-statistical-units/nuts I can load them with the following code: library(rgdal) shp_bdir <- [PATH TO SHAPE FILE] layername <-

[R] How to spot/stop making the same mistake

2021-06-23 Thread Phillips Rogfield
I make the same mistake all over again. In particular, suppose we have: a = c(1,2,3,4,5) and a variable that equals 1 for the elements I want to select: t = c(1,1,1,0,0) To select the first 3 elements. The problem is that a[t] would repeat the first element 3 times . I have to either

Re: [R] Mediation analysis takes up all RAM, then all swap, and then RStudio/terminal suddenly closes

2021-06-23 Thread Phillips Rogfield
Hello Bert, thank you for your kinds answer. No I didn't contact the maintainer of the package first, that's my fault :) I have come to the conclusion that the problem is that I don't have enough resources on my PC (RAM) for the task at hand. I have tried to run it on a remote VM with more

Re: [R] Wayland backend for R

2021-06-23 Thread Phillips Rogfield
Wayland and see how its graphics device performs ? https://github.com/rstudio/rstudio/issues/4686 Paul On 23/06/21 1:25 am, Phillips Rogfield wrote: I have compiled R from source and I had to install the X11 libraries. I use Wayland, and I am having problems plotting on X11 (I gue

[R] Wayland backend for R

2021-06-22 Thread Phillips Rogfield
I have compiled R from source and I had to install the X11 libraries. I use Wayland, and I am having problems plotting on X11 (I guess it uses XWayland) with this version. Is there a Wayland backend for R? Some configuration option I need to turn on in order to use it?