Unable to access R from QGIS 2.18.9 on Macbook - r

I have been unable to run R from within QGIS on my Macbook. I have R version 3.4.0 installed and QGIS 2.18.9 on macOSX Sierra.
"The error message I receive is
Missing dependency.This algorithm cannot be run :-(
This algorithm requires R to be run.Unfortunately, it seems that R is not installed
in your system, or it is not correctly configured to be used from QGIS
Click here to know more about how to install and configure R to be used with QGIS"
Error Image...

I get the same thing on my MAC. Researching discovered that the MacOS X from El Capitan and later (Sierra is later) implemented some stringent sandboxing security that doesn't allow R to be seen from the QGIS location. Hence the error. So far I have not discovered a workable solution. The solutions suggested for El Capitan do not work for Sierra.

Related

R not loading packages on some MAC versions

I am using the regular R console on a MAC Air with Monterrey as the OS and I'm still having issues loading packages. It is iffy, as to whether a package is loaded and ready to use. Sometimes packages will load and sometimes not. Also, it would not call up data sets that as a default are included in the R packages I'm trying to use. the weird thing is it would recognize the example dataset that is included because when I first tied to call them up, it would let me autocomplete the name. Then it stopped doing that. Then it started telling me that the file doesn't exist. I know I haven't used R in a while but this just seems buggy! any help would be appreciated.
The R version that I have installed is : R version 4.2.0 (2022-04-22) -- "Vigorous Calisthenics" and it was installed just last week.
It seems R was not properly installed on your machine.
Several persons reported that using the package manager in RStudio actually did the trick of updating the packages.

How come XQuartz/X11 makes the file explorer called with tk_choose.files look like this?

MacOS: High Sierra, version 10.13.6
R version: 3.6.1
R studio verison: 1.2.1335
I have been using Anaconda to manage my R packages for a while now. However, I keep getting errors in regards to C and Fortran compilers when trying to install and run packages that depend on them through the Anaconda R studio distribution. Thus I started using the stand-alone version of R studio again. I use the tcltk package in pretty much all of my scripts to easily choose file paths to load multiple data sets etc. When using the tcltk::tk_choose.files() command through the Anaconda R studio distribution, the file explorer window looks like the standard file explorer in MacOS. However, when using the same command in the stand-alone version the file explorer looks like this when running through XQuartz/X11:
My question is why the file explorer suddenly looks this "old" and if there is a way to fix it so I can continue using tcltk? Otherwise are there any alternatives?
I have tried out rJava together with rChoiceDialogs but I cannot get the rChoiceDialogs::jchoose.files() to work.
I managed to solve the issue. Meaning the file explorer looks normal again. I uninstalled my R, RStudio, and XQuartz. I then reinstalled all three using homebrew following the guide posted here.

R Console - scrolls errors

I am working in Mac with a fresh install of the OS. R 3.4.3 GUI 1.70 El Capitan build (7463) is installed on my system. When I open R Console, I see the following error messages, which scroll continuously until the application is closed. I have tried installing older versions of R, going back to 3.4.0, but with the same results. R Studio works without any issues. Please advise how this may be corrected.

install R 2.11.x on El Capitan

Hi I am using program the needs to have R 2.11.x installed on my Mac with El Capitan. However, when I try to install this I get an error message saying that R.2.11 version is not supported in Leopard or previous versions of OS. Please let me know if there is a get around to this problem. Thank you.
R 2.11 is ancient. No wonder you can’t install it.
If you really need this old version, the only recourse is to use a different PC or a virtual machine with another operating system installed on it.
But chances are you should use a much newer version of R.

Running system command from R console cannot locate installed programs since upgrading to Mac OSX 10.10

I have been having some weird issues with R (3.1.1) and RStudio (0.98.1079) and I suspect that it is due to the fact that these programs are not longer referencing the right places after I upgraded to Mac OSX 10.10.
In particular, I cannot seem to find packages that I know I have installed on my computer to run using the system command in the R console. That is, running man pdflatex in a Terminal window yields the help manual for PDFLATEX. However running system('man pdflatex') from the R console yields the error message No manual entry for pdflatex.
The issue persists even though I reinstalled R, RStudio and MacTex since I upgraded to Mac OSX 10.10. Any help would be appreciated!
Yosemite has a bug wherein some environment variables, including PATH, appear twice in a program's environment with different values. For instance, you might notice that Sys.getenv("PATH") will show you one PATH, and system("echo $PATH") will show you an entirely different one.
I expect that most of your problems are due to this bug.
There are a few workarounds you can try immediately:
You can manually forward PATH yourself. Try this:
> system2("man", "pdflatex", env=paste0("PATH=", Sys.getenv("PATH")))
Or, you can start RStudio from Terminal:
$ open /Applications/RStudio.app
Both the R and RStudio engineers have implemented workarounds in the last few days. R (as of 3.1.2) and RStudio (as of 0.98.1087) should behave as you'd expect.
There are a host of questions about similar problems. All of them appear to come up when you update OS X to either Yosemite or Sierra with an older version of R already installed.
The easiest solution is to completely uninstall R (note the comments about using which R !), and then to install it again.
This also solves problems such as R showing different version numbers in terminal and the GUI.

Resources