[QGIS-Developer] QGIS Processing "R" Provider -- 3.x beta available
Pedro Venâncio
pedrongvenancio at gmail.com
Fri Nov 16 04:09:55 PST 2018
Nyall,
Running this on Python Console
import os
from processing.core.ProcessingConfig import ProcessingConfig
R_FOLDER = 'R_FOLDER'
folder = ProcessingConfig.getSetting(R_FOLDER)
os.path.abspath(folder) if folder else ''
bin_folder = folder
executable = 'Rscript'
exec_dir = 'x64'
os.path.join(bin_folder, 'bin', exec_dir, '{}.exe'.format(executable))
I get the correct path to Rscript:
'C:\\Users\\pedro.venancio\\Documents\\R\\R-3.5.1\\bin\\x64\\Rscript.exe'
Pedro Venâncio <pedrongvenancio at gmail.com> escreveu no dia sexta,
16/11/2018 à(s) 10:38:
> Hi Nyall,
>
> Nyall Dawson <nyall.dawson at gmail.com> escreveu no dia sexta, 16/11/2018
> à(s) 10:30:
>
>>
>>
>> What sub folder is your rscript.exe file in?
>>
>>
> I have it in two subfolders:
>
> C:\Users\pedro.venancio\Documents\R\R-3.5.1\bin\Rscript.exe
>
> C:\Users\pedro.venancio\Documents\R\R-3.5.1\bin\x64\Rscript.exe
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20181116/f65fc44d/attachment.html>
More information about the QGIS-Developer
mailing list