New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to load R packages and easily execute custom R scripts without Python code #20435
Comments
Author Name: Irucka Embry (@iembry) Hi, would it be possible to use rpy2 (http://rpy.sourceforge.net/) to have the interface to R? I know that SageMath (http://www.sagemath.org/) includes a working environment for R and it's also Python-based. Thank you. |
Author Name: Giovanni Manghi (@gioman) Irucka Embry wrote:
We had plugins in the past that worked on top of rpy(2) and they were all a bit painful to use and maintain, and if fact they stopped to be maintained. R is now integrated in QGIS via the Processing toolbox, there you can run any R script. |
Author Name: Irucka Embry (@iembry) Thank you for your note about the ability to run any R scripts from QGIS. I originally posted this feature request because I still have yet to be able to use any of my own R scripts in the SEXTANTE Processing Toolbox. I am using QGIS 2.8.1 on Trisquel 7.0, which is based off of Ubuntu Trusty. I have also tried in previous versions of QGIS with no success. I have attached the simple R script and the log output from the SEXTANTE Processing Toolbox. I attempted to run the script in the custom script window of the Toolbox. Since rpy(2) was a horrible experience maybe using pyRServe could serve as a better interface to R and to the existing libraries installed on the computer. I performed some more research today on connecting Python/QGIS and R and the following 3 links are possibilities for making the R accessibility better:
Thank you.
|
Author Name: Alexander Bruy (@alexbruy) If I'm not wrong, Processing allow you to add scripts in pure R. Reopen if necessary
|
Author Name: Irucka Embry (@iembry) Processing does not allow scripts to be created in pure R. Here is an example from the scatterplot regressione script (only the last 2 lines are R commands): ##My scripts=group Thank you. Irucka Embry |
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Giovanni Manghi (@gioman) Some providers are being removed from QGIS/Processing (will be available as plugin) and so are their categories in the bug tracker. To not leave them orphaned of a category they are being reassigned to processing/core. |
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Irucka Embry (@iembry)
Original Redmine Issue: 12250
Redmine category:processing/core
Assignee: Victor Olaya
In an answer to a question posted (http://gis.stackexchange.com/questions/75320/is-it-possible-to-create-and-run-custom-r-scripts-in-qgis-2-0?s=5|1.4552) at the GIS Stack Exchange, Guillermo Olmedo posted a link to his Python scripts with R code (saved as .rsx files).
Instead of .rxs files, I would like the ability to load custom R scripts as .R files without any Python code. I would like the ability to load any installed R package (or download R packages if not already installed and then load) into QGIS when executing a custom R script as well.
Thank you.
The text was updated successfully, but these errors were encountered: