I know you said R is installed correctly, but...
can you do this first RFromPerl.html ? (search for "libR.so")
Most probable cause: Try checking if you have a shared library:

Note also that to use the R-in-Perl mechanism one must have built R as + a shared library. (This is not necessary when calling Perl from R.) +You can check if this has been done by checking to see if libR is in +the directory $R_HOME/lib/. If this is not there, you are advised to +clean the entire R distribution (with make distclean) so as to start +from scratch and then configure and compile R using the --enable-R-sh +lib to R's configuration script.

From a Perl perspective, See also: Re: Can't locate loadable object for module X in @INC (@INC contains: ... )
Addendum: If not, search your harddisk for R.pm, and hack the INC with it:
BEGIN { unshift @INC, "/usr/local/src/RSPerl/"; ## include lib };

But I am sure that in the html page, there is something you need to re-do to get the paths working without hacking them.

note: you NEED to use the unshift inside that BEGIN block (it executes before all else, thus assuring the @INC is set before it uh... begins... processing your "use R;" statement).


In reply to Re: Calling R in Perl using RSPerl by FreeBeerReekingMonk
in thread Calling R in Perl using RSPerl by rkeshvardoost

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.