Sys.getenv("PATH")
[1] "/Applications/Octave.app/Contents/Resources/usr/bin: /usr/bin :/bin:/usr/sbin:/sbin:/usr/local/bin:/Library/TeX/texbin:/opt/X11/bin:/opt/local/bin”
Apparently uname is in /usr/bin, and /usr/bin is in the path.
I wondered if /Applications/Octave.app/Contents/Resources/usr/bin might be causing trouble, so I removed it...
Sys.setenv(PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Library/TeX/texbin:/opt/X11/bin:/opt/local/bin”)
...but that didn’t help either.
The error message always concludes with…
sh: rm: command not found
which doesn’t make a lot of sense to me because rm is also in the path (see above)...
$ which rm
/bin/rm
I also tried recreating the rstudio-desktop file…
$ mv ~/.rstudio-desktop ~/backup-rstudio-desktop
…but that didn’t help either.