Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: using R from Perl

by renovatio66 (Initiate)
on Aug 05, 2010 at 15:31 UTC ( #853164=note: print w/replies, xml ) Need Help??


in reply to Re: using R from Perl
in thread using R from Perl

i can not install RSPerl as I don't have the admin rights. Is there any other way? to call R script through perl command line and getting the result.

Replies are listed 'Best First'.
Re^3: using R from Perl
by BrowserUk (Pope) on Aug 05, 2010 at 15:37 UTC
      Sorry guys, that is the problem i cant install anything I have R on my machine and Perl but not any package bridging between the two, yet my project head is saying that it can be done and i HAVE NO IDEA whatsoever to tackle this. help me here.
        If you're on a windows machine, I'm sure there is a way to install CPAN stuff in your own "home" space and adjust your shell environment so that perl knows to look there for modules, but I don't know the details (I'm not a windows user, thankfully).

        If you're on linux or unix, you just need to make sure that your home directory contains subdirectories called "bin", "lib" and "lib/perl5". Then, run:

        perl -MCPAN -e shell
        You'll probably go through a long "first-time start-up" config dialog, in which all the "default" answers are the right answers. Then you'll see a prompt for action:
        cpan>
        Once you see that, just type something like this (supposing that your home directory is called "renovatio"):
        install Statistics::R PREFIX=/home/renovatio
        Any executables being installed by the module will be placed in your ~/bin directory; various module files will be placed into ~/lib/perl5/...

        If you have specific problems with installing a module, you can use your shell to go into ~/.cpan/build/{Module-Package-Name}, and try reading the README and/or INSTALL files (if any), and manually doing the sequence:

        perl Makefile.PL PREFIX=/home/renovatio make make test make install
        If you get errors that you can't understand, and the module docs don't help, try posting some of the details here. Good luck!
        the problem i cant install anything

        That is really quite ridiculous. CPAN is like having a few hundred experts working for your firm for free.

        my project head is saying that it can be done

        Then ask him how!

        Can you convince an admin to install something for you?
        Kaiti
        Swiss Army Nerd
Re^3: using R from Perl
by lima1 (Curate) on Aug 05, 2010 at 19:05 UTC
    I'd be pretty surprised if you can't install RSPerl in your home. I'm quite sure I did... Just RTM.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2021-12-05 18:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    R or B?



    Results (31 votes). Check out past polls.

    Notices?