[QGIS-Developer] QGIS Processing "R" Provider -- 3.x beta available

Nyall Dawson nyall.dawson at gmail.com
Fri Nov 16 04:22:38 PST 2018


On Fri, 16 Nov 2018 at 22:10, Pedro Venâncio <pedrongvenancio at gmail.com> wrote:
>
> 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'

Have you got "use 64" checked in the provider options?

Nyall

>
>
>
> 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
>>
>>


More information about the QGIS-Developer mailing list