Rajarshi Guha wrote:
> 
> 
> On Wed, Jan 14, 2009 at 8:33 AM, Laurent Gautier <lgaut...@gmail.com 
> <mailto:lgaut...@gmail.com>> wrote:
> 
>     Well, it does not crash (segfault, only rumbles remaining),
>     it just throws an exception about being unable to open the
>     connection. ;-)
> 
> 
>     Did you try to output to you webpage the outcome of:
> 
>     print(robjects.r('''file.info
>     <http://file.info>(dir("/where/the/file/is"))'''))
> 
> 
> Thanks for the pointer. The output of the above with the appropriate path is
> 
> structure(list(size = numeric(0), isdir = logical(0), mode = 
> structure(integer(0), class = "octmode"), 
>     mtime = structure(numeric(0), class = c("POSIXt", "POSIXct"
>     )), ctime = structure(numeric(0), class = c("POSIXt", "POSIXct"
> 
>     )), atime = structure(numeric(0), class = c("POSIXt", "POSIXct"
>     )), uid = integer(0), gid = integer(0), uname = character(0), 
>     grname = character(0)), .Names = c("size", "isdir", "mode", 
> 
> "mtime", "ctime", "atime", "uid", "gid", "uname", "grname"), class = 
> "data.frame", row.names = character(0))
> 

Your output from
r_listdir = robjects.r('''file.info(dir("/where/the/file/is"))''')

is an empty directory. (?!) Try going up the directory structure and see 
if any directory can be listed.


> I'm quite puzzled since Python can read the file, but R via Python is 
> not able to. Could this be related to some permissions that are not 
> propagated from the Python side to the R side?


> -- 
> Rajarshi Guha


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to