Peter wrote:

> rpy.assign("dir1", "/home/foouser/foo/")
> 
>>  rpy.r("dat.file<- paste(dir1, 'prices.txt', sep="")")
>>
>>  '/home/foouser/foo/ prices.txt'
> 
> Very odd.

  Here's why. Look at the string that python is constructing when you do:

  >>> r("paste('y', 'x', sep="")")
  'y x'

  The string is:

  >>> "paste('y', 'x', sep="")"
  "paste('y', 'x', sep=)"

  which is valid R syntax, and gives you the default sep, which is.... 
space!

  Moral: watch your quotes.

Barry

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to