looking for IDE advice or workflow tips

K

kpierce8

I'm a novice developer at best and often work with the R statistical
programming language. I use an editor called TINN-R which allows me to
write a script, then highlight a few lines and send them to the
interpreter. I am using pythonwin and it lacks this funtionality (that
I can tell) and when I copy and paste lines into the interpreter only
the first line is evaluated and the rest appears as returned text.

Is there an editor that allows me to send a few lines out of many
lines of code at a time?

or

How does one check small blocks of code without typing them each time,
running an entire script (with other code) or creating a small script
for every code block?

For example say lines 1-100 work fine and now I'm working on lines
101-105. Should I create a small script with just those lines?

Thanks for any advice
 
J

Jeff

I'm a novice developer at best and often work with the R statistical
programming language. I use an editor called TINN-R which allows me to
write a script, then highlight a few lines and send them to the
interpreter. I am using pythonwin and it lacks this funtionality (that
I can tell) and when I copy and paste lines into the interpreter only
the first line is evaluated and the rest appears as returned text.

Is there an editor that allows me to send a few lines out of many
lines of code at a time?

or

How does one check small blocks of code without typing them each time,
running an entire script (with other code) or creating a small script
for every code block?

For example say lines 1-100 work fine and now I'm working on lines
101-105. Should I create a small script with just those lines?

Thanks for any advice

Emacs.
 
T

Terry Reedy

I'm a novice developer at best and often work with the R statistical
How does one check small blocks of code without typing them each time,
running an entire script (with other code) or creating a small script
for every code block?

For example say lines 1-100 work fine and now I'm working on lines
101-105. Should I create a small script with just those lines?

I use IDLE currently, but others like more sophisticated editors.
But even IDLE will comment and uncomment a selected block.
Or indent or dedent such a block.

I sometimes cut and paste within the shell window or between an editor
window and the shell.

If lines 1-100 run in under three seconds and have no system effects, I
don't worry about rerunning them. It won't hurt the CPU;-). If the
file consists of nearly all function definitions, or classes with defs,
under a second is more like it. Put one or more uncommented test calls
for the function being worked on at the bottom and run. and edit. and
run again.

tjr
 
R

Ralf Schönian

I'm a novice developer at best and often work with the R statistical
programming language. I use an editor called TINN-R which allows me to
write a script, then highlight a few lines and send them to the
interpreter. I am using pythonwin and it lacks this funtionality (that
I can tell) and when I copy and paste lines into the interpreter only
the first line is evaluated and the rest appears as returned text.

Is there an editor that allows me to send a few lines out of many
lines of code at a time?

or

How does one check small blocks of code without typing them each time,
running an entire script (with other code) or creating a small script
for every code block?

For example say lines 1-100 work fine and now I'm working on lines
101-105. Should I create a small script with just those lines?

Thanks for any advice

Try another approach. Write unittests for your code. This will lead to
more testable and shorter chunks of code and your test cases will be
executed on each iteration step.

Ralf Schoenian
 
B

Bruno Desthuilliers

(e-mail address removed) a écrit :
I'm a novice developer at best and often work with the R statistical
programming language. I use an editor called TINN-R which allows me to
write a script, then highlight a few lines and send them to the
interpreter. I am using pythonwin and it lacks this funtionality (that
I can tell) and when I copy and paste lines into the interpreter only
the first line is evaluated and the rest appears as returned text.

Is there an editor that allows me to send a few lines out of many
lines of code at a time?

emacs + python-mode.
or

How does one check small blocks of code without typing them each time,
running an entire script (with other code) or creating a small script
for every code block?
>
For example say lines 1-100 work fine and now I'm working on lines
101-105. Should I create a small script with just those lines?

You may want to learn more about functions.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,999
Messages
2,570,243
Members
46,836
Latest member
login dogas

Latest Threads

Top