There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
Missing quoting string causes unhandled exception
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)
Is it possible to fix it ?
Thanks you very much