Skip to content

send commands from script to console

3 messages · Greg Snow, Mario Garrido

#
Hi,
I'm working with R in windows and I wonder if there is any command (of the
kind CTRL+ ) to transfer the commands I've worked with (like: >
model<-glm(prevalencia~edadysexo*mes*zona,binomial)) to a script
automatically, without the results I received from R after execute them.
Another question, what's the combination of CTRL+ for transfer the orders in
the other way, fom the script to the console?
Thanks very much

Sorry for the explanation, but I don't know the generic names of each kind
of commands

-----
Mario Garrido Escudero
PhD student
Dpto. de Biolog?a Animal, Ecolog?a, Parasitolog?a, Edafolog?a y Qca.
Agr?cola
Universidad de Salamanca
#
In the windows GUI cntrl+r will send the current line or selection to the command line.  There is not a similar sequence to send from the command line to a script, but you can use the "history" function to create a new script from the recent commands (you can set how many).

Another option is ?txtStart in the TeachingDemos package which can be used to create a script (in a file) with all the commands you issue (well the ones that don't result in an error) going forward.