Make install_r(), setup_r_profile(), and setup_r_environ() methods.
Closed this issue · 1 comments
grabear commented
From @grabear on May 25, 2018 4:52
Create custom methods for installing various version of R, and managing the R environment. This will require user or package specified .Rprofile and .Renviron files, and maybe other parameters.
Copied from original issue: datasnakes/renv#9
grabear commented
R Configuration options (3.4.3)
./configure --help # See config-help.txt
# Look into using:
# --prefix=$HOME/desired/path
# --disable-rpath do not hardcode runtime library paths (.libPaths??)
# --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
# --without-libpth-prefix don't search for libpth in includedir and libdir
# R_PRINTCMD command used to spool PostScript files to the printer
#
# PKGCONF path to pkg-config utility
# PKG_CONFIG_PATH
# directories to add to pkg-config's search path
# PKG_CONFIG_LIBDIR
# path overriding pkg-config's default search path
# Important stuff:
#
#Installation directories:
# --prefix=PREFIX install architecture-independent files in PREFIX
# [/usr/local]
# --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
# [PREFIX]
#
#By default, `make install' will install all the files in
#`/usr/local/bin', `/usr/local/lib' etc. You can specify
#an installation prefix other than `/usr/local' using `--prefix',
#for instance `--prefix=$HOME'.
#
#For better control, use the options below.
#
#Fine tuning of the installation directories:
# --bindir=DIR user executables [EPREFIX/bin]
# --sbindir=DIR system admin executables [EPREFIX/sbin]
# --libexecdir=DIR program executables [EPREFIX/libexec]
# --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
# --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
# --localstatedir=DIR modifiable single-machine data [PREFIX/var]
# --libdir=DIR object code libraries [EPREFIX/lib]
# --includedir=DIR C header files [PREFIX/include]
# --oldincludedir=DIR C header files for non-gcc [/usr/include]
# --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
# --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
# --infodir=DIR info documentation [DATAROOTDIR/info]
# --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
# --mandir=DIR man documentation [DATAROOTDIR/man]
# --docdir=DIR documentation root [DATAROOTDIR/doc/R]
# --htmldir=DIR html documentation [DOCDIR]
# --dvidir=DIR dvi documentation [DOCDIR]
# --pdfdir=DIR pdf documentation [DOCDIR]
# --psdir=DIR ps documentation [DOCDIR]
#
#R installation directories:
# --libdir=DIR R files to R_HOME=DIR/R [EPREFIX/$LIBnn]
# rdocdir=DIR R doc files to DIR [R_HOME/doc]
# rincludedir=DIR R include files to DIR [R_HOME/include]
# rsharedir=DIR R share files to DIR [R_HOME/share]