For a tcltk application, I would like to start an R script without opening a console window or starting a DOS box. I already figured out that by creating a link to RScript.exe I can force the console window to start minimized, but I wonder if I can avoid the console window at all?
相关问题
- R - Quantstart: Testing Strategy on Multiple Equit
- Using predict with svyglm
- Reshape matrix by rows
- Extract P-Values from Dunnett Test into a Table by
- split data frame into two by column value [duplica
相关文章
- How to convert summary output to a data frame?
- How to plot smoother curves in R
- Paste all possible diagonals of an n*n matrix or d
- ess-rdired: I get this error “no ESS process is as
- How to use doMC under Windows or alternative paral
- dyLimit for limited time in Dygraphs
- Saving state of Shiny app to be restored later
- How to insert pictures into each individual bar in
You want to "run R in batch mode". It's quite straightforward; there are some instructions here.
EDIT: I don't see a console window; here are the steps I took.
1) I created a file named
r.bat
containing the lineRterm --vanilla
and saved it in the R startup working directory (as given bySys.getenv("USERPROFILE")
).2) I created a test R script,
test.r
, that would take several seconds to run (so I'd have chance to see any windows popping up.Obviously you can run any script that you like.
3) I opened a dos command prompt in the same dir as
r.bat
and typedR <test.r> test.txt
.