How I got RStudio Desktop Elspeth Geranium on macOS Silicon

Bug report also filed 2023-01-24

The current version of RStudio had been giving me problems and I was putting off trying to fix it until others began to report problems.

The main problem that I experienced was installing or updating packages. These come downloaded in compressed formula and the RStudio Console could not find /usr/bin/tar to decompress it and returned an error. Running R in the macOS GUI or from a terminal or the RStudio terminal pane didn't have the problem.

I fixed it.

First, I broke quarto rendering, so if you have to render quarto within RStudio and you can do without install/update within RStudio, stop here. I'm beginning to think of the inability to render as a feature, though. Chunks still render OK, it's just not possible to dump a complete HTML or pdf file. I too easily fall into the "are we there yet" trap by fixing presentation errors at every step rather than just doing the real job—actual analysis, not fingerpainting. The separate quarto command line utility works just fine for rendering.

Actually, I didn't break quarto rendering; I was just attempting from the wrong directory.

Second, I nuked, with Zap.App the existing and R.Studio, which seemed to clear out some accumulated cruft. Then reinstalled via the normal R pkg installer and RStudio dmg installer.

Next, I removed from my ~ home folder the file .Renviron and recreated it with


together with my $PATH (use your own)


and, because a man with two watches never knows what time it is


which you can omit and, of course, should omit if you haven't done standalone versions of pandoc and quarto.