similar to: Execute commands in 'R' within PERL Program

Displaying 20 results from an estimated 5000 matches similar to: "Execute commands in 'R' within PERL Program"

2010 Jul 14
2
send out put to file in R
Hi I am using igraph package in R. My goal is to read a network (in "pajek" format) and decompose the network into components. In addition, I am also interested in sending this output to to a file. I am having problem in while writing to a file! my code looks like this g <- read.graph ("F://test.net", "pajek") compo <- decompose.graph(g,
2011 Mar 28
2
How to save heatmap as image or pdf
Hello Everyone, I am using R for creating heatmap from a square matrix. Below is my script to do so my_map <- read.csv("Desktop/input.csv", sep=",") my_matrix <- data.matrix(my_map) my_heatmap <- heatmap(my_matrix, Rowv=NA, Colv=NA, col = cm.colors(256), scale="column", margins=c(5,10)) I get a beautiful plot as output, but I could not save this plot
2002 Jul 15
0
Using R from within Perl
Hello All, I installed RSPerl following the instructions from http://www.omegahat.org/RSPerl/ but got an error message when I tried to run test2.pl. The error is : Can't load '../share/blib/arch/auto/R/R.so' for module R: cannot open shared object file: cannot load shared object file: No such file or directory at /usr/lib/perl5/5.6.0/i686-linux/DynaLoader.pm line 200. at test.pl
2002 Jul 16
0
Summary of using R from within Perl
Many thanks to Duncan Lang and Patrick Connolly for their very helpful suggestions. I used ldd to look up R.so and was told that libR.so was not found. After I changed LD_LIBRARY_PATH, it worked! Weidong Weidong Zhang wrote: > Hello All, > > I installed RSPerl following the instructions from > http://www.omegahat.org/RSPerl/ but got an error message when I tried to > run
2010 Jul 17
0
installing and loading packages
I don't think there"most". It is normal to have to call the "library" function for each package you need devices to during an R session. "chakri_amateur" <chakri2sai at yahoo.co.in> wrote: > >In my Windows XP, I just have to load package every time I open R, but not >Install !! > >There must be some problem during installation ! >
2003 Nov 03
2
calling R from Perl
Hi, I want to call R from Perl to generate plots to be displayed on a webpage. What I found out so far is that there is a package called RSPerl on www.omegahat.org which should do what I need. However in the description it says it has been tested with R 1.3.* the latest. I'm using R 1.8.0 right now so the package seems rather unmaintained. It is not easy for me to just install it and see
2004 Jun 18
1
Problems running RSPerl w. SuSe 9.0 / Perl 5.8.1
Hi, installation of RSPerl works fine without errors. Running RSPerl does not work at all. If I start R, and then enter this command: library(RSPerl) this error appears: ----------------- > library(RSPerl) Error in dyn.load(x, as.logical(local), as.logical(now)) : unable to load shared library "/usr/local/lib/R/library/RSPerl/libs/RSPerl.so":
2005 Apr 27
1
R/Splus--Perl Interface && ssh
Hi: I'm using RSPerl_0.6-3 calling R from Perl under UNIX system. My perl programs with the RSPerl work well in my computer. If submitting these programs to a UNIX system by 'ssh' or to GNQS system by 'qsub', these programs do not work even though both systems can run R. Details are following. Any suggestion will be highly appreciated. Xiao My perl program 'tt.pl'
2009 Oct 20
0
Perl error - Can't locate R/Rdconv.pm in @INC
Dear list, I've a package, myPkg, which was developed on R v 2.6.1. I have installed R v2.9.2 from source, with a shared library and tcktk support. The package, myPkg, depends on RSPerl, and imports it in its NAMESPACE. I've downloaded and installed RSPerl using command: >R CMD INSTALL -c --configure-args="--with-modules='IO \ Fcntl Socket Storable XML::Parser::Expat
2002 Jul 18
1
RSPerl on OS X
Hello, Has anyone gotten RSPerl ( (http://www.omegahat.org/RSPerl/) to work on Mac OS X? After installing RSPerl, I run the test program (or, even simpler, perl -e 'use R;') and get the following error: dyld: perl Undefined symbols: _RPerl_createRProxy _RPerl_discardRProxy _RPerl_getProxyValue _RPerl_getReferenceName _addPerlConverterRoutine _fromPerl _tryEval _userLevelConversionToPerl
2005 May 19
1
R from Perl -- RSPerl and lines function.
Dear R-helpers, I am running well Perl and R on my Debian Linux, and I tried RSPerl. Installation is ok and all simple functions run well. But I have a problem to call the "lines" function. I would like to draw an histogram with the density curve on. Is is OK in R with the command: >x<-rnorm(1000) >hist(x,prob=T) >lines(density(x)) for example. Now, I have a Perl script
2004 Aug 18
3
calling R from Perl
Hello, I am trying to call R from Perl running on Windows 2000. I have looked through the previous posts regarding running R from Perl and all have referred to the RSPerl package at Omegahat. Unfortunately the documentation for this package specifically states that it only works in Unix at the moment. Does anyone else have any suggestions about the best way to do this in the Windows
2011 Nov 28
2
problem in reading file
Hi, I have a file that looks like this : one,0 two,0.591,0 three,0.356,0.350,0 four,-0.098,0.072,0.380,0 five,0.573,0.408,0.382,0.062,0 six,0.156,0.232,0.517,0.424,0.303,0 seven,0.400,0.414,0.611,0.320,0.401,0.479,0 eight,0.282,0.375,0.512,0.346,0.308,0.463,0.605,0 nine,0.519,0.484,0.467,0.167,0.455,0.311,0.574,0.557,0 I want to create a data matrix out of it, so I tried this :
2010 May 13
2
need help in igraph package of R
hi I am struck with a problem in igraph package of R. My problem is as follows I want to plot a power law fit for my data (in .net format --- pajek format) syntax for that in R is g <- read.graph("filename.net", "pajek") d <- degree (g, mode="in") power.law.fit (d+1, 2) it gives me desired out put if my if input a single file but I want to use a variable
2004 Sep 30
2
Interface between R and Perl
Hi, I have made a GUI in PerlTk and I would use R within perl. I actually try to install RSPerl but I have some problems during the compilation In order to call R from perl I use actually an other system based on the OPEN command in perl. It works fine but when I tried to call the fonction plot() of R from perl the plot do not appears and a file named plot.ps is generated. Unfortunalelly, my
2004 Sep 13
1
R and perl on solaris
Dear all, I am developing a GUI in perl-Tk and I would use R engine to make some analysis and some plots. I have seen that the package RSPerl allows R from perl exchanges but this package is developed on and for intel based computers. When I try to install the package on solaris I have some errors has somebody already used RSPerl on solaris ? Many thanks, Patrick
2009 Sep 20
1
perl functions in R enviroment
dear all, I am trying to implement some perl scripting in R to improve the performance of some scripts. I found RSPerl library, but it seems to be quite tricky to import variables. this is a simple example. is there any simpler way to do it? furthermore is there any other available resource to interface the two language? RSPerl seems to be no longer supported and when I load it R complains about
2006 Nov 22
1
installation step for RSperl
Hi, I try to use R within perl. however, I have a bit difficulty to install RSperl. I followd steps from http://www.omegahat.org/RSPerl/. but still can' t make it work. could someone list a fe w clean steps that I can follow to install it? cheers -- .................................... Yuandan Zhang 张元旦 ..................................... [[alternative HTML version deleted]]
2008 Feb 26
0
RSPerl on OS X Server 10.4.11
Hello, I tried the R-Sig-Mac list with this query, but had no takers. I hope that the following isn't too far off the mark for this list. Many thanks in advance if someone can help me out! Quick summary: I can't get RSPerl working on a PPC G5 with the pre-compiled binary for Mac OS X, but it does work if I compile R from source with the "--enable-R-shlib" flag. If I
2010 May 22
1
calling Perl script from R on Windows 7
Hi list, I would like to capture the console output of a Perl script by running the script from R. I have tried the following: # Create perl script cat( 'print "Hello World\n";',file="hello.pl" ) # Trial 1 system(command="c:\\Perl64\\bin\\perl hello.pl") -I saw no output for the above command. I have used this method before to run perl scripts that