Jesus Loves GRASS

Technical blog about GRASS/GIS,open source geoinformatics and MAPSERVER.

Friday, August 03, 2007

putObject object type coercing

Like it says in the API of RSOAP sometimes it's SOAP has problem converting object and it may need some help:

In the python shell:
>>array_numbers=RSession.call("rnorm",10)

This array_number will be an instance object.

To put this list python object in the R
>>RSession.putObject("x",list(array_numbers))

if there weren't the conversion to list from instance the R server would reply
'None'

PS: Better to use the wrapper function shown in the article RSOAP in Python Zine to deal with object transformation

Labels: , , ,

0 Comments:

Post a Comment

<< Home