This project is read-only.
2
Vote

Missing quoting string causes unhandled exception

description

Hi, I have to evaluate R scripts written by my application's users; I noticed that if a string (in my case containing a directory's path) it's not quoted, REngine crash with an unhandled exception, causing the crash of my application.

Debugging, it seems that the issue is in the Dispose() method of class ProtectedPointer, here the details of the exception:
External component has thrown an exception.
at RDotNet.REngine.<Defer>d__45.MoveNext() in ...\Projects\RDotNet\R.NET\REngine.cs:line 558


Here the example of the R script to evaluate:

mainDir <- "\mymachine\tempr\plots" # should be "\\mymachine\tempr\plots"
dir.create(mainDir, recursive = TRUE, showWarnings = FALSE)
setwd(mainDir);

Is it possible to fix it ?
Thanks you very much
Best regards
Andrea

comments