<div dir="ltr">Hi Ned<div><br></div><div>That looks like a bug when parsing the script code. I will check to see what I can do.</div><div><br></div><div>Are you using the latest version of Processing, or the one that comes with QGIS 2.0.1?</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-02-10 23:03 GMT+01:00 Ned Horning <span dir="ltr"><<a href="mailto:horning@amnh.org" target="_blank">horning@amnh.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi -<br>
<br>
I am trying to learn to write R scripts using the Processing Toolbox. I have a random forest image classification script that works in the processing toolkit but I'd like to modify it to do more complex tasks. I think I need to use the ##passfilename tag but every time I add that to a script I get an error that I pasted below. I tried several different scripts and every time I add the ##passfilename tag I get the same error. Does the ##passfilename tag  need other parameters? If anyone knows what the problem might be or has pointers about how I can find the problem please let me know?<br>

<br>
This R scripting capability has a lot of potential and I'd like to write a guide on how to use it but I still have a lot to learn myself.<br>
<br>
All the best,<br>
<br>
Ned<br>
<br>
<br>
I'm running QGIS 2.0.1 on Ubuntu 12.04. This is the error message:<br>
--<br>
An error has occured while executing Python code:<br>
<br>
Traceback (most recent call last):<br>
  File "/usr/share/qgis/python/<u></u>plugins/processing/r/<u></u>EditRScriptDialog.py", line 95, in runAlgorithm<br>
    alg = RAlgorithm(None, unicode(self.text.text()))<br>
  File "/usr/share/qgis/python/<u></u>plugins/processing/r/<u></u>RAlgorithm.py", line 71, in __init__<br>
    self.<u></u>defineCharacteristicsFromScrip<u></u>t()<br>
  File "/usr/share/qgis/python/<u></u>plugins/processing/r/<u></u>RAlgorithm.py", line 82, in defineCharacteristicsFromScrip<u></u>t<br>
    self.parseDescription(iter(<u></u>lines))<br>
  File "/usr/share/qgis/python/<u></u>plugins/processing/r/<u></u>RAlgorithm.py", line 108, in parseDescription<br>
    raise WrongScriptException("Could not load R script:" + self.descriptionFile + ".\n Problem with line \"" + line + "\"")<br>
TypeError: cannot concatenate 'str' and 'NoneType' objects<br>
<br>
Python version:<br>
2.7.3 (default, Sep 26 2013, 20:13:52)<br>
[GCC 4.6.3]<br>
<br>
<br>
QGIS version:<br>
2.0.1-Dufour Dufour, exported<br>
<br>
Python path: ['/usr/share/qgis/python/<u></u>plugins/processing', '/usr/share/qgis/python', '/home/nedhorning/.qgis2/<u></u>python', '/home/nedhorning/.qgis2/<u></u>python/plugins', '/usr/share/qgis/python/<u></u>plugins', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-<u></u>linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-<u></u>dynload', '/usr/local/lib/python2.7/<u></u>dist-packages', '/usr/lib/python2.7/dist-<u></u>packages', '/usr/lib/python2.7/dist-<u></u>packages/PIL', '/usr/lib/python2.7/dist-<u></u>packages/gst-0.10', '/usr/lib/python2.7/dist-<u></u>packages/gtk-2.0', '/usr/lib/pymodules/python2.7'<u></u>, '/usr/lib/python2.7/dist-<u></u>packages/ubuntu-sso-client', '/usr/lib/python2.7/dist-<u></u>packages/ubuntuone-client', '/usr/lib/python2.7/dist-<u></u>packages/ubuntuone-installer', '/usr/lib/python2.7/dist-<u></u>packages/ubuntuone-storage-<u></u>protocol', '/usr/lib/python2.7/dist-<u></u>packages/wx-2.8-gtk2-unicode', '/usr/share/qgis/python/<u></u>plugins/fTools/tools']<br>

______________________________<u></u>_________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/qgis-user</a><br>
</blockquote></div><br></div>