Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Re: Social network analysis and Perl

by jmerelo (Sexton)
on Oct 28, 2003 at 20:42 UTC ( #302809=note: print w/replies, xml ) Need Help??


in reply to Re: Social network analysis and Perl
in thread Social network analysis and Perl

I have upgraded to R 1.8. Installation of RSPerl, from R, works fine, but following the not-so-clear instructions for making R work from Perl issues such an amount of errors...
cc1: aviso: cambiando el orden de búsqueda para el directorio del sist +ema "/usr/local/include" cc1: aviso: porque ya ha sido especificado cmo un directorio que no +es del sistema En el fichero incluído de R.xs:5: RSCommon.h:49:26: Rinternals.h: No existe el fichero o el directorio RSCommon.h:50:24: Rdefines.h: No existe el fichero o el directorio En el fichero incluído de R.xs:5: RSCommon.h:65: error de decodificación antes de "USER_OBJECT_" RSCommon.h:65: aviso: la definición de datos no tiene tipo o clase de +almacenamiento RSCommon.h:67:24: Rversion.h: No existe el fichero o el directorio RSCommon.h:68:28: falta un operador binario antes de `(' RSCommon.h:76:29: R_ext/Boolean.h: No existe el fichero o el directori +o En el fichero incluído de R.xs:6:
... and so on, up to 200 hundred, that I think it just does not work with Perl >= 5.6. The web page says it works for 5.005 and R 1.3; it keeps working for R 1.8, but it no longer works with Perl.

Replies are listed 'Best First'.
Re: Re: Re: Social network analysis and Perl
by Anonymous Monk on Oct 28, 2003 at 21:50 UTC
    So why don't you write your R script manually and just shell out to rcmd.exe with Perl? Typically I read data from a db with Perl/DBI, write it to a file, dynamically write an R script, shell to R (which opens the file, analyzes it, writes results to text), Perl validates the results, parses file, loads analyzed data back to DB. All is good in the world.
Re: Re: Re: Social network analysis and Perl
by Roger (Parson) on Oct 28, 2003 at 22:44 UTC
    Ummm, could you translate the error messages to English please?

    I am *guessing* that you are using version 0.5.7 of RSPerl, which contains C files hardwired to Perl 5.0's XS. Unfortunately the guts of Perl has changed much since then, you just can not expect perl XS to be backward compatible with older versions. And from what I see, the guts of R has also changed dramatically since then...

    You could try to fix RSPerl's C files by resolving each error one-by-one. Probably not... Why don't you email an request to the Author of RSPerl and ask him for the upgrade?

    Anonymous Monks's suggestion looks good...

      Never mind the messages, it's just about missing files, and lots of other warnings and stuff... I just wanted to show there are lots of error messages. And yes, that was my hunch. I'd rather write a social network analysis module in Perl myself than fix somebody else's C code. But I'll email him, anyways. Using R from perl is a good idea.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://302809]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2020-06-02 18:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (19 votes). Check out past polls.

    Notices?