Setting the R-interface and R as a common uder library - same tree

I am a bit confused on how to set R (via compilation) as a shared library.

Instructions here ( Rpy2 ) that I should do the following:

# <go to the R source directory> make distclean ./configure --enable-R-shlib make make install 

but the first make ( make distclean ) will remove any previous R installation under the same directory tree (for example, the contents of the bin folder).

What if I want to use the same setup for the R interpreter and shared libraries? For example, let's say I want to use an interpreter to install R packages, and then a shared installation library to call R (and these packages) from Rpy2.

Otherwise, how can I install R packages for use through Rpy2?

+7
source share
1 answer
 ./configure --enable-R-shlib 

He will say that to create R shared libraries in addition to what is usually created (executable file, documentation, etc.)

Besides

 make install 

install R (default is /usr/local ). Here you will want to find the executable file R. The make distclean affects only the build directory, not the installed R.

+8
source

All Articles