Displaying 20 results from an estimated 3000 matches similar to: "rpy2 (Python <--> R)"
2017 Jul 20
2
Installing rpy2 on Red Hat 6
I need to install rpy2 on RHEL6. The version of R in the 6 repos is
3.0, and rpy2 does not work with that version. I installed R 3.3.3
following the directions here:
https://oguya.ch/posts/2017-03-18-building-R-on-rhel-6/. But even with
3.3.3 it's still failing. Using pip it fails with:
/usr/local/lib64/R/lib/libR.a(CommandLineArgs.o): could not read
symbols: Bad value
and installing from
2017 Jul 20
0
Installing rpy2 on Red Hat 6
> On Jul 20, 2017, at 7:53 AM, Larry Martell <larry.martell at gmail.com> wrote:
>
> I need to install rpy2 on RHEL6. The version of R in the 6 repos is
> 3.0, and rpy2 does not work with that version. I installed R 3.3.3
> following the directions here:
> https://oguya.ch/posts/2017-03-18-building-R-on-rhel-6/. But even with
> 3.3.3 it's still failing. Using pip it
2011 May 05
1
problem with location of libraries 64-bit (opensuse)
Dear list,
there seems to be a problem with the standard location of R?s 64-bit libs
at least under openSUSE.
I had two user questions regarding the compilation of rpy2 for 64-bit systems.
Personally I don`t know rpy2 but maybe someone on this list can decide if
the mistake lies on R`s side or on rpy2?s side or in between.
R-devel is installed in these cases, I asked. Latest R-base or
2016 Dec 27
3
Definition of uintptr_t in Rinterface.h
Hi,
I was recently pointed out that a definition in Rinterface.h can be conflicting
with a definition in stdint.h:
/usr/include/R/Rinterface.h has:
typedef unsigned long uintptr_t;
/usr/include/stdint.h has:
typedef unsigned int uintptr_t;
(when 32bit platform complete definition is:
#if __WORDSIZE == 64
# ifndef __intptr_t_defined
typedef long int intptr_t;
# define
2013 Apr 02
1
Rpy2 and Mac OS X 10.8.3
I am having a strange problem. I have been using python + rpy2 on my Mac
for quite sometime now. I recently upgraded to OS X 10.8 from 10.6 and
that's when the problem began.
Now, when I try to load some R packages (like zoo) using robjects.r, python
crashes with seg fault 11. Here's an example below:
>> import rpy2.robjects as ro
>> ro.r(''' library(zoo)
2013 Apr 02
1
Rpy2 and Mac OS X 10.8.3
I am having a strange problem. I have been using python + rpy2 on my Mac
for quite sometime now. I recently upgraded to OS X 10.8 from 10.6 and
that's when the problem began.
Now, when I try to load some R packages (like zoo) using robjects.r, python
crashes with seg fault 11. Here's an example below:
>> import rpy2.robjects as ro
>> ro.r(''' library(zoo)
2017 Jan 01
3
Definition of uintptr_t in Rinterface.h
On 29/12/2016 15:55, Simon Urbanek wrote:
> The problem is elsewhere - Rinterface.h guards the ultima-ratio fallback with HAVE_UINTPTR_T but that config flag is not exported in Rconfig.h. Should be now fixed in R-devel - please check if that works for you.
Rconfig.h would be appropriate if Rinterface.h is being included from C
code using the same compiler as used for R. But as Rinterface.h
2017 Jan 02
1
Definition of uintptr_t in Rinterface.h
> On Jan 1, 2017, at 5:12 PM, Laurent Gautier <lgautier at gmail.com> wrote:
>
>
>
> 2017-01-01 8:28 GMT-05:00 Prof Brian Ripley <ripley at stats.ox.ac.uk>:
> On 29/12/2016 15:55, Simon Urbanek wrote:
> The problem is elsewhere - Rinterface.h guards the ultima-ratio fallback with HAVE_UINTPTR_T but that config flag is not exported in Rconfig.h. Should be now
2009 Nov 11
1
fisher.test negative value error
Hi all,
I am new to python, R and rpy2. I having few errors when I am using
'fisher.test' function where I am struck now. Please help to fix these bugs.
My code for fisher.test goes this way
*from rpy2 import *
import rpy2.robjects as robjects
def fisherExact(a,b,c,d):
v = [a,b,c,d]
m = robjects.r['matrix'](v,2,2)
s = robjects.r['fisher.test'](m)
return s
*
2015 Apr 20
2
Dependency problem with "python-rpy2" package
Hello,
I have a problem with package "python-rpy2" with Debian Wheezy repository.
I use this repo :
deb http://cran.r-project.org/bin/linux/debian wheezy-cran3/
This package depends on "python-singledispatch" but it doesn't exist in official Debian repo...
Could you help me to fix this issue ?
Thanks a lot,
2008 Sep 10
0
How to install rpy under mac os x?
Hi to all,
there are some binary .dmg packages to install easly rpy under mac os x?
I'm tryin' to install Rpy under Mac Os X but I receive the following
message:
host46-209-dynamic:rpy usernone$ python setup.py install
running install
running build
running build_py
running build_ext
building 'rpy2.rinterface.rinterface' extension
gcc -arch ppc -arch i386 -isysroot
2011 Mar 22
1
enable shlib for RPy2- where is source file?
Hi,
Have installed Ubuntu packages for R by adding:
deb http:///bin/linux/ubuntu hardy/
to my /etc/apt/sources.list file and using:
sudo apt-get update
sudo apt-get install r-base
I understand that to enable shlib I need to download source files to my home
directory. When I run
apt-get source r-base
I get the message:
You must put some 'source' URIs in your sources.list
Fair enough!
2010 Jan 14
1
how to call a function from C
Hi,
In Rcpp, we now have a "Function" class to encapsulate functions (they
cover all three kinds, but this may change).
To call the function, what we do is generate a call with the function as
the first node and then evaluate the call.
SEXP stats = PROTECT( R_FindNamespace( mkString( "stats") ) );
SEXP rnorm = PROTECT( findVarInFrame( stats, install( "rnorm") ) )
2009 Nov 19
3
Issue when calling deparse(substitute(x)) from C with "anonymous" R vectors ?
Dear list,
When calling R from C, what appears like a spurious error can be
triggered during the execution of chisq.test(x, y).
This is happening when the following conditions are met:
- x and y are "anonymous" C-level R vectors (they do not have a symbol),
but they are protected from garbage collection
- x and y are "not too small" (it was experienced as soon as they are
2009 Jul 16
2
Renviron.in error when compiling R 2.9.1 under Debian.
Dear all,
I'm trying to compile R 2.9.1 on my home directory under debian,
and as I need to play with RPy, I tryed compile R using:
./configure --enable-R-shlib
But, during the compilation, I get the error below:
-------------------------------------
using as R_SHELL for scripts ... /bin/sh
configure: creating ./config.status
config.status: creating Makeconf
config.status: creating Makefile
2012 Jul 17
1
python-rpy DEB broken - but hopefully easy to fix
Hi CRAN people,
There is an issue with python-rpy on Ubuntu, when installed from the
CRAN repository. (I read the info on
http://cran.r-project.org/bin/linux/ubuntu/ and saw the note that this
package is experimental but you are happy to receive feedback on it.)
After adding the appropriate CRAN repo:
% sudo apt-get install python-rpy
[ ... installs various dependencies ... ]
% echo import rpy |
2019 Dec 07
2
Inconsistent behavior for the C AP's R_ParseVector() ?
Thanks for the quick response Tomas.
The same error is indeed happening when trying to have a zero-length
variable name in an environment. The surprising bit is then "why is this
happening during parsing" (that is why are variables assigned to an
environment) ?
We are otherwise aware that the error is not occurring in the R console,
but can be traced to a call to R_ParseVector() in
2010 Nov 10
1
can't get/find or install R.dll?
Just installed a 1st time use of R on a win vista 64 box (4gigram) but
asked for the 32 bit version.. I plan to use via Rpy and or Rpy2
installation is via "R-2.12.0-win.exe"
got the following when trying to test...
raise RuntimeError("Unable to locate R.dll within %s" % R_HOME)
RuntimeError: Unable to locate R.dll within C:\PROGRA~1\R\R-212~1.0
Sure 'nuff when I go
2009 Aug 16
1
good and bad ways to import fixed column data (rpy)
Recorded here so others may avoid my mistakes.
I have a bunch of files containing fixed width data. The R Data guide
suggests that one pre-process them with a script if they are large.
They were 50MG and up, and I needed to process another file that gave
the layout of the lines anyway.
I tried rpy to not only preprocess but create the R data object in one
go. It seemed like a good idea; it
2009 Jun 09
3
how to install own R withour root?
Dear list members,
i am currently want to install Rpy2 in a linux box which has R 2.4.0
installed
RPy requries R 2.7.0 or above
but i have no root previlleges
so my question is how to install R 2.7.0 on my own directory?
and replace the system installed R 2.4.0 when i input R command from the
bash Shell?
thanks for any reply.
Best Regards!
--
Daofeng Li,PhD Candidate
China Agricultural