[R] Usage of R CMD INSTALL

Kurt Hornik Kurt.Hornik at ci.tuwien.ac.at
Sun Jul 29 22:50:37 CEST 2001


>>>>> "David Kane writes:

> The help page for INSTALL says, in part,
>      Some package sources contain a `configure' script that can be
>      passed arguments or variables via the option `--configure-args'
>      and `--configure-vars', respectively, if necessary.  The latter is
>      useful in particular if libraries or header files needed for the
>      package are in non-system directories.  In this case, one can use
>      the configure variables `LIBS' and `CPPFLAGS' to specify these
>      locations (and set these via `--configure-vars').  One can also
>      bypass the configure mechanism using the option `--no-configure'.

> No doubt because of my inexperience, I can't quite figure out how this
> works. For example, if I want to set the variable LIBS to '/mylibs',
> how would I do this? I have tried various versions of

> R CMD INSTALL --configure-vars='LIBS=/mylibs' mypackage
> R CMD INSTALL --configure-vars 'LIBS=/mylibs' mypackage
> R CMD INSTALL --configure-vars LIBS=/mylibs mypackage

> all to no effect. (Although it is quite possible that I am having an
> effect, but misunderstanding the package (RODBC) that I am using.)

I assume you want to specify a non-standard library location?  Then what
you want is

  R CMD INSTALL --configure-vars='LIBS=-L/mylibs' mypackage

This is really a configure (i.e., autoconf) issue, but maybe we should
say more about this or at least add a pointer ...

-k
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list