Using EmEditor with Other Applications: A Comprehensive Guide

Using EmEditor with Other Applications: A Comprehensive Guide

Joseph Lv8

Using EmEditor with Other Applications: A Comprehensive Guide

January 10, 2011 at 5:03 am #9184

scrabbles

Member

Hi qjunkim,

I’m the author of that blogpost (thanks muchly for posting that link here flamerz). The rrun (emeditor macro) script allows you to run only selected lines as well, though the version available will (as you say) run rterm each time.

I have modified the script, so that if a flag called “useSource” is set true, and you have a running instance of RGui + R Console (default when rgui is launched from shortcut), it will run the code in that instance and not reload rterm each time. I found it was more reliable to use the “source” command, rather than sending strings to the REPL;
eg source(“C:/test.r”,echo=TRUE,keep.source=TRUE)

echo and keep.source args are hardcoded in the script, but of course feel free to modify that! in r, if you are not already familiar with this command, try “help(source)” for more options.

I’ll upload the script and do a little blog post about it to explain it more.

Also read:

  • Title: Using EmEditor with Other Applications: A Comprehensive Guide
  • Author: Joseph
  • Created at : 2024-11-16 01:12:33
  • Updated at : 2024-11-22 23:41:01
  • Link: https://win-fantastic.techidaily.com/using-emeditor-with-other-applications-a-comprehensive-guide/
  • License: This work is licensed under CC BY-NC-SA 4.0.
On this page
Using EmEditor with Other Applications: A Comprehensive Guide