On 10/7/2008 12:23 PM, Gang Chen wrote:
Thanks a lot for the suggestion!
Unfortunately " R --no-save < prog.R" does not work well with my
situation because prog.R
contain lines such as readline() and () that require user response in
the middle of the
execution. I also tried other options such as
Is Rscript what you want?
http://stat.ethz.ch/R-manual/R-patched/library/utils/html/Rscript.html
>From the docs I can't see if it allows interactivity (also through
tcl/tk). Still, give a look.
ScionForbai
__
R-help@r-project.org mailing list
https://
Thanks for the suggestion, Luke!
Your approach would load prog.R whenever invoking R, but that is not
exactly what I want. Basically I can run prog.R through
source("~/someDir/prog.R") inside R. Also since prog.R involves many
lines of readline() and tclvalue() in tcltk package, the program
requir
Something like
env R_PROFILE=prog.R R
may work for you. You may need to call .First.sys at the beginning of
prog.R to get default packages loaded.
luke
On Tue, 7 Oct 2008, Gang Chen wrote:
Thanks a lot for the suggestion!
Unfortunately " R --no-save < prog.R" does not work well with my
Thanks a lot for the suggestion!
Unfortunately " R --no-save < prog.R" does not work well with my
situation because prog.R
contain lines such as readline() and () that require user response in
the middle of the
execution. I also tried other options such as "R -f prog.R" and "R
--interactive < prog
Em Qui, 2008-10-02 às 14:36 -0400, Gang Chen escreveu:
> I want to run a R program, prog.R, interactively. My question is, is
> there a way I can start prog.R on the shell terminal when invoking R,
> instead of using source() inside R?
>
> TIA,
> Gang
Hi Gang
I my system just only type:
R --n
I want to run a R program, prog.R, interactively. My question is, is
there a way I can start prog.R on the shell terminal when invoking R,
instead of using source() inside R?
TIA,
Gang
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/l
7 matches
Mail list logo