north-road / qgis-processing-r

QGIS Processing R Provider Plugin
https://north-road.github.io/qgis-processing-r/
GNU General Public License v3.0
63 stars 14 forks source link

Possibilities to publish a script tool as a plugin #121

Closed wdkang closed 11 months ago

wdkang commented 1 year ago

Hello,

I am relatively new to the idea of developing add-ins/plugins. I am wondering if it is possible to package a R script or a group of R scripts and publish it as a plugin that a user can install without having to worry about the scripts and where to place them?

JanCaha commented 1 year ago

It might be possible, but i dont think it is actually easy to set up. You would need two main steps to make it work:

What I personally do is use QGIS Resource Sharing plugin. With that you can set up github repository and put your Python tools, R scripts and other stuff there and simply add it as resource in the plugin. Feel free to look at my repo with scripts to take a look at the set up.