From 9f3ee8dff6e64d83354fe49ec035324c1e4a38f9 Mon Sep 17 00:00:00 2001 From: Guillermo Federico Olmedo Date: Fri, 14 Feb 2014 13:42:18 -0200 Subject: [PATCH 1/2] added .rsx extension to R. When we write R extensions for QGIS we have to end the files in .rsx [1]. But the code its pure R. It would be great if github acknowledge those scripts as R scripts. [1] http://www.qgis.org/es/docs/user_manual/processing/3rdParty.html#r-creating-r-scripts --- lib/linguist/languages.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index a9c347e4..15ece00e 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -1401,6 +1401,7 @@ R: primary_extension: .r extensions: - .R + - .rsx filenames: - .Rprofile interpreters: From fdbfd8b806d51ff0e9c66a3e34c087a373f183e3 Mon Sep 17 00:00:00 2001 From: Guillermo Federico Olmedo Date: Fri, 14 Feb 2014 14:53:14 -0200 Subject: [PATCH 2/2] Added sample of R qgis script --- samples/R/R-qgis-extension.rsx | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 samples/R/R-qgis-extension.rsx diff --git a/samples/R/R-qgis-extension.rsx b/samples/R/R-qgis-extension.rsx new file mode 100644 index 00000000..adf59e67 --- /dev/null +++ b/samples/R/R-qgis-extension.rsx @@ -0,0 +1,5 @@ +##polyg=vector +##numpoints=number 10 +##output=output vector +##[Example scripts]=group +pts=spsample(polyg,numpoints,type="regular")