Skip to content
Prev 171761 / 398503 Next

windows vs. linux code

On 25/02/2009 8:19 PM, jdeisenberg wrote:
Well, not on some Windows systems.  On mine, I get

 > system("date")
Wed Feb 25 20:37:10 EST 2009

This is because I have the date command installed as part of the R 
tools.  (Date is also available in a number of other toolkits that make 
Windows shells more Unix-like.)

So your point is valid that code written to use system functions on 
Linux is unlikely to work in a plain out of the box Windows system, but 
it's often not hard to get it to run.

Duncan Murdoch