<div dir="ltr"><div>You are right Dirk, RInside overrides what is specified because the function</div><div>myAskYesNo doesn't actually ask, so this explains why there is to termination</div><div>prompt under Windows. This does not change what happens under Linux</div><div>because this function is assigned to a Windows-specific callback. Under</div><div>Linux the confirmation message appears.</div><div><br></div><div>The current status is that the example seems to work using R-devel, </div><div>but not using R-4.2.2.</div><div><br></div><div>Dominick</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jan 20, 2023 at 1:40 PM Dominick Samperi <<a href="mailto:djsamperi@gmail.com">djsamperi@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">As I said, everything is fine using R-devel, so R_LIBS just took care of a local configuration issue for<div>Tomas. The problem was reported for R-4.2.2, and I don't think setting R_LIBS will make any difference.</div><div><br></div><div>On the interactive=false issue, the same source code is used for both Linux and Windows, so the</div><div>behavior should be the same. In RInside.h the constructor does set interactive=false, but</div><div>there is a comment above it that says "overridden in code, cannot be set to false." This</div><div>explains why the prompt is seen under Linux (and should be seen under Windows).</div><div><br></div><div>Dominick</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jan 20, 2023 at 12:54 PM Dirk Eddelbuettel <<a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
On 20 January 2023 at 10:28, Tomas Kalibera wrote:<br>
| Executing then without R_LIBS set gave this error:<br>
| <br>
| "<br>
| Error: function 'Rcpp_precious_remove' not provided by package 'Rcpp'<br>
| In addition: Warning message:<br>
| In library(package, lib.loc = lib.loc, character.only = TRUE, <br>
| logical.return = TRUE,  :<br>
|    there is no package called 'Rcpp'<br>
| "<br>
| <br>
| So I knew I had to set R_LIBS.<br>
<br>
Very good catch.  The 'Rcpp_precious_remove' was spurious as I suspected all<br>
along but it was trickily hiding the actual issue.  Any clever thought on how<br>
we could check for missing .libPaths() etc when RInside starts?<br>
<br>
On 20 January 2023 at 17:22, Tomas Kalibera wrote:<br>
| On 1/20/23 16:35, Dominick Samperi wrote:<br>
| > After fixing the library issue and getting the app running what <br>
| > happens when you terminate with q()?<br>
| ><br>
| > You should see the usual "Save workspace image? [y/n/c]:", and under <br>
| > Linux this is what happens.<br>
| <br>
| The program just exits without asking.<br>
<br>
I think you can control that by setting the 'interactive' toggle. From<br>
memory, there is a global state variable reflecting the command-line choice<br>
(or invocation) and IIRC the ctor may offer it. I have the same behaviour in<br>
littler where we long ago decided to have interactive=false (because hey,<br>
scripting) and that sometimes leads to slightly different outcomes so we have<br>
an override there.  And RInside and littler are pretty close cousins.<br>
<br>
Dirk<br>
<br>
-- <br>
<a href="http://dirk.eddelbuettel.com" rel="noreferrer" target="_blank">dirk.eddelbuettel.com</a> | @eddelbuettel | <a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a><br>
</blockquote></div>
</blockquote></div>