title: MonetDB embedded R code debugging
body: <p>In my efforts to work around the issue mentioned here:
  <a href="https://stackoverflow.com/questions/37302096/monetdb-connect-to-go-db-within-r-code-that-is-run-in-database">MonetDB connect to GO.db within R code that is run in-database</a></p>
  
  <p>I went ahead and copied the code from WGCNA that I needed to my own package and installed it. Obviously, I now can load the package without any issues (since I didn't need the GO.db part).</p>
  
  <p>However, I seem to run into another issue:</p>
  
  <blockquote>
    <p>Server says '!Error running R expression. Error message: Error in
    .C("corFast", x = as.double(x), nrow = as.integer(nrow(x)), ncolx =
    as.integer(ncol(x)),  : '.</p>
  </blockquote>
  
  <p>I indeed wanted to use the faster cor function from WGCNA, but apparently the C call now creates another issue.
  Unfortunately, the message is not informative. I already tried to run the query interactively and adding debug to the statement. This did not provide me with more information.</p>
  
  <p>Is there anything that I can do to increase the verbosity, so that I can debug the proces?</p>
  
  <p>I also tried:</p>
  
  <pre><code>options(monetdb.debug.query=F)
  </code></pre>
  
  <p>This resulted in a bit of extra output prior to the query, but no extra output on the error that occurred.</p>
  
  <p>Using the suggestion of Hannes Muehleisen I added:</p>
  
  <pre><code>options(monetdb.debug.mapi=T)
  </code></pre>
  
  <p>It does add a little more information, which allowed me to proceed a bit further. I am now stuck with the following error, which seems again truncated.</p>
  
  <blockquote>
    <p>QQ: 'SELECT * FROM cor_test();' TX: 'sSELECT * FROM cor_test(); ; RX:
    '!Error running R expression. Error message: Error in .C("corFast", x
    = as.double(x), nrow = as.integer(nrow(x)), ncolx = as.integer(ncol(x)),  :  !  "corFast" not available for .C() for
    package "MRMRF Error in .local(conn, statement, ...) :    Unable to
    execute statement 'SELECT * FROM cor_test();'. Server says '!Error
    running R expression. Error message: Error in .C("corFast", x =
    as.double(x), nrow = as.integer(nrow(x)), ncolx = as.integer(ncol(x)),
    : '.</p>
  </blockquote>