NP++ and NP++ to R
-
Hello everyone,
Notepad++ is my favourite tool to program data analysis in R, and I use it in combination with Notepad++ to R. I have a technical issue since the latest update and though it’s partially NpptoR related, I thought I’d post it here.
NpptoR sends commands to R using a shortcut of preference (usually F8) but since the latest update, something goes wrong in the communication between N++ and R: when a line is wrapped (i.e. because of word wrap) R only received the code up to the wrap (when a single line is sent to R). There’s no problem without word wrap, but then of course the code is less easy to read in N++.
Did anything change to the way word wrap is coded in N++ in the most recent update or one of the most recent updates? Any ideas for a workaround or a way to solve this?
Cheers and thanks in advance for any response!
Maarten -
Hello @Maarten-van-Schie,
the only thing which comes to my mind is the missing SCI_LINEENDEXTEND message.
As Npp2R seems to be an autohotkey extension it might be that it is using the previously assigned shortcut or message id.May I ask you, how does this really work?
You do have an R Interpreter like I do have the python interpreter?
And you could call something like R_interpreter.exe R_program_file to get some results?
If so, why don’t using nppExec? Most likely because there are other feature Npp2R provides, aren’t there?Cheers
Claudia -
Thank you @Claudia-Frank ! I think the code you point to is indeed where the problem occurs.
I am not sure about the intricacies of NpptoR, but the plugin manages to take lines, selections and scripts in N++, and pastes and/or executes them in the R console window (so not in the N++ window like nppExec does). I’d like to learn how to apply nppExec for R, but it would probably be best to leave that for another time :)
The issue is mentioned here at SourceForge and here at Github but the bit of code you refer to does not seem to be identified there, so thanks a lot for bringing it up.
I hope it will come to the attention of the NpptoR developers, unless the N++ developers revert this part of the code as you suggest elsewhere.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login