Hello,
Is there the possibility to submit an individual "R CMD INSTALL" command for a 
certain R extension?

Background:
---------------------
The R extension "V8" uses hardcoded Paths to the NodeJS "V8" library in its 
configure step. However I want it to use the NODEJS environment module instead.
This is, how the "configure" script of the R extension "V8" looks:

-------------------------------------------------------------------------------------------------------------
#!/usr/bin/env bash
# ...
# If your libv8 is installed in a custom location you need to set
# INCLUDE_DIR and LIB_DIR manually via e.g:
# R CMD INSTALL --configure-vars='INCLUDE_DIR=/.../include LIB_DIR=/.../lib'
# ...
PKG_CFLAGS="-I/usr/include/v8 -I/usr/include/v8-3.14"
-------------------------------------------------------------------------------------------------------------

So indeed, as the comment in the header states,  the most promising step would 
be to submit a R CMD INSTALL command - i.e.
R CMD INSTALL --configure-vars='INCLUDE_DIR=/.../include LIB_DIR=/.../lib'

Is there an elegant way to do this for an RPackage (exts_defaultclass = 
'RPackage') ?

Else I'd try to patch the "configure" file from the "V8"-R-extension.

Thank you and best regards,
Wolfram




PS: Thanks Kenneth for pointing out my error in regards to the wrong mail 
address - which also lead to the discovery of a further grave error in my first 
mail - which now nobody can see any more :)



Wolfram Zieger
--------------
Senior Systems Engineer
IT Services Berlin
Phone:      +49 30 2007 697 -12
alt. Phone: +49 211 399 223 -45
Fax:        +49 30 2007 697 -11
[email protected]<mailto:[email protected]>
science+computing ag/ATOS
Geschäftsstelle Berlin
Ordensmeisterstraße 15
12099 Berlin, Germany
https://de.atos.net/sc
     ___                         ___
    /\  \                       /\  \
   /::\  \       __            /::\  \
  /:/\:\  \     /\ \          /:/\:\  \
 _\:\-\:\  \    \:\ \___     /:/  \:\  \
/\ \:\ \:\__\  /\___  __\   /:/__/ \:\__\
\:\ \:\ \/__/  \/__/\ \_/   \:\  \  \/__/
 \:\ \:\__\        \:\_\     \:\  \
  \:\/:/  /         \/_/      \:\  \
   \::/  /                     \:\__\
    \/__/                       \/__/

       --== science + computing ==--
           an  A T O S  company

Reply via email to