title: "Error in prettyNum" in ...rpy2\robject\functions.py
body: <p>I am getting an error from my input object which goes through ...\rpy2\robjects\functions.py. Specifically:</p>
  
  <pre><code>Traceback (most recent call last):
    File "D:\Projects\Kaggle\UPenn_and_Mayo_Clinic_Seizure_Detection\Scripts\py_test01.py", line 174, in &lt;module&gt;
  featureEEG = R_EEGA.FeatureEEG(data = time_series_object, classes_Id = classes_id_matrix, rec_Id = record_id_matrix)
    File "C:\Python33\lib\site-packages\rpy2-2.3.8-py3.3-win32.egg\rpy2\robjects\functions.py", line 90, in __call__
  return super(SignatureTranslatedFunction, self).__call__(*args, **kwargs)
    File "C:\Python33\lib\site-packages\rpy2-2.3.8-py3.3-win32.egg\rpy2\robjects\functions.py", line 39, in __call__
  res = super(Function, self).__call__(*new_args, **new_kwargs)
  rpy2.rinterface.RRuntimeError: Error in prettyNum(.Internal(format(x, trim, digits, nsmall, width, 3L,  : 
    invalid 'trim' argument
  </code></pre>
  
  <p>I am guessing the function does not like the object sent to it. FYI, be wary of the line numbers above, a few <strong>print()</strong> statements were placed into ...\function.py to track where the offended line is located (therefore they do not correspond with line numbers in unaltered ...\function.py). The lines of <strong>...\function.py</strong> code having problems with the input are in the <strong>__call__</strong> function of a <strong>Function</strong> class object:</p>
  
  <pre><code>res = super(Function, self).__call__(*new_args, **new_kwargs)
  res = conversion.ri2py(res)  ### this is the error line ###
  </code></pre>
  
  <p>where, </p>
  
  <p>new_args = [ ]</p>
  
  <p>new_kwargs =</p>
  
  <pre><code> {'rec.Id': &lt;Matrix - Python:0x0647C698 / R:0x08734740&gt; [       1,        1,        1, ...,        4,        4,        4], 
  'classes.Id': &lt;Matrix - Python:0x0651B4B8 / R:0x08A0F1E8&gt; [       1,        1,        1, ...,        2,        2,        2], 
  'data': &lt;Matrix Python:0x065228A0 / R:0x0D740008&gt; [-42.880000, -48.880000, -70.880000, ..., -6.105000, -4.105000, -10.105000]}
  </code></pre>
  
  <p>The above matrices are inputs from this line of code:</p>
  
  <pre><code>featureEEG = R_EEGA.FeatureEEG(data = time_series_object, classes_Id = classes_id_matrix, rec_Id = record_id_matrix)
  </code></pre>
  
  <p>where R_EEGA is the R eegAnalysis package</p>
  
  <p>Any idea how to make this run correctly? Any additional code needed to understand the situation? Any suggestions where I can find the answer?</p>
  
  <p>Thank You</p>