Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upTurning on repl access in interactive mode #25
Conversation
Switched off the `--no-readline` option in interactive mode
|
The patch is short and sweet and looks ok. But I still don't see how you can flip between the normal REPL we use programmatically and a normal one. Maybe I have too little imagination. Could you cook up an example? That would be an interesting use case if it worked. But so far I am not yet seeing how it could... |
|
My use case is quite big, as I include R as a plugin in a CFD solver. I'll try to write a small example (rinside_callback2?) and commit it here, a bit later this week. |
|
Thanks for following up. I will definitely give this a spin. Not sure when I'll get to it so please poke if I seem no responsive. But it is now on the TODO list ... |
|
This looks nifty, but there is a setup issue. It needs
I presume you rebuilt RInside locally with this on? |
|
As with the other callback examples - the RInside package have to be compiled with RINSIDE_CALLBACK uncommented here: https://github.com/eddelbuettel/rinside/blob/master/inst/include/RInsideConfig.h#L24 In fact, the example and the mod need only the |
|
Agreed in principle. Callbacks were a more ambitious undertaking which didn't really pan out, or is used. Exporting |
|
Ok, I just pushed a new branch with |
|
I merged the |
|
Splendid. Had the same though about callback/non-callback. Will merge this evening unless I get distracted. |
|
Ok, I found some time to catch up with RInside and made some (trivial, catching up with tighter |
bd32d4c
into
eddelbuettel:master
I propose to switch off the
--no-readlineoption in interactive mode.There are two cases to consider in the interactive mode:
I don't see any other method to getting the readline
ReadConsolecallback, becauseRstd_ReadConsoleand theUsingReadlineflag are not exported in the R library.