Re: [R] R script from Python

2008-10-17 Thread Prof Brian Ripley
This is a python not an R problem. Use of redirection is handled by a shell, not by the executable (usually: it could depend on the compiler). The Windows system and popen commands (and hence R's system()) does not use a shell: POSIX OSes do. It will be cleaner to use Rscript to run scripts.

Re: [R] R script from Python

2008-10-17 Thread Simon Knapp
'Rterm --help' shows the usage as: Rterm [options] [< infile] [>outfile] [EnvVars] just in case you didn't understand what the angle brackets meant: the term "[< infile]" means "read input from 'infile'", and the term "[> outfile]" means "write output to 'outfile'". Though your code works at th