[Qgis-user] R in QGIS on OSX using Kyngchaos build
Pieter du Plooy
pjduplooy at zpanelcp.com
Mon Mar 7 11:30:25 PST 2016
Hi guys
Thanks for all the info on this.
I have reverted my one Mac to Mavericks, as I want to test the Horao plugin
on Mac, and Openscenegraph does not play nicely with El Cap and from what I
heard also Yosemite.
I'll leave El Cap on my other Mac, and see what this does.
SIP was disabled on this machine for Grass install, but I will do the
linking later and also test out your recommendations.
Pieter
On Mon, Mar 7, 2016 at 8:38 PM, Agustin Diez-Castillo <gvsig.mac at gmail.com>
wrote:
> Thanks for pointing me in the right direction. Following instructions at
> the grass for mac wikidot I've disabled [1] the System Integrity Protection
> feature and later on I’ve linked my R and Rscript at /usr/local/bin to
> /usr/bin
> sudo ln -s /usr/local/bin/R
>
> sudo ln -s /usr/local/bin/Rscript Rscript
> Now R is working from Qgis at el Capitan
> Merci
> PS Maybe is a good idea to put the trick at the Qgis wiki.
> [1] http://grassmac.wikidot.com
>
> On 07 Mar 2016, at 18:43, gene <martin.laloux at gmail.com> wrote:
>
> The test is done in the lines 179-200 in the script Rutils.py. It consists
> in running the shell command
>
> command = ['R --version'] with processing
>
> proc = subprocess.Popen(
> command,
> shell=True,
> stdout=subprocess.PIPE,
> stdin=open(os.devnull),
> stderr=subprocess.STDOUT,
> universal_newlines=True,
> ).stdout
> for line in iter(proc.readline, ''):
> if 'R version' in line:
> settings.setValue(R_INSTALLED, True)
> return
>
> The result in my shell is
>
> $ R --version
> WARNING: ignoring environment value of R_HOME
> R version 3.2.2 (2015-08-14) -- "Fire Safety"
> Copyright (C) 2015 The R Foundation for Statistical Computing
> Platform: x86_64-apple-darwin13.4.0 (64-bit)
> ....
>
> Therefore, it is an R problem with El Capitan and not a Kyngchaos build
> problem
> The problem of El Capitan is that only Apple is allowed to install software
> under /usr/bin (only /usr/local/bin) and the R (R, Rscript) executables
> are
> in /usr/bin. This affects also MacTeX and XQuartz (because of the new
> System Integrity Protection (SIP)
> <https://support.apple.com/en-us/HT204899> )
>
> Therefore, it is an R problem and not a Kyngchaos build problem ( the
> problem of R with El Capitan has been resolved)
>
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/R-in-QGIS-on-OSX-using-Kyngchaos-build-tp5254567p5254940.html
> Sent from the Quantum GIS - User mailing list archive at Nabble.com
> <http://nabble.com>.
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20160307/35e6e720/attachment.html>
More information about the Qgis-user
mailing list