[R] R minor version

William Dunlap wdunlap at tibco.com
Fri Jan 12 17:42:41 CET 2018


> .expand_R_libs_env_var("poof/%p/%v")
[1] "poof/x86_64-w64-mingw32/3.4"



Bill Dunlap
TIBCO Software
wdunlap tibco.com

On Fri, Jan 12, 2018 at 4:49 AM, Loris Bennett <loris.bennett at fu-berlin.de>
wrote:

> Hi,
>
> When I install a package as a non-root user, it gets saved in a path
> such as
>
>   ~/R/x86_64-unknown-linux-gnu-library/3.4
>
> for any R version 3.4.x.  Thus, if I want to install the packages
> somewhere else, as root say, I might do
>
>   install.packages("somepackage","/some/where/else/R/site-library/3.4")
>
> In this case I would then want to construct the appropriate path in,
> say, /etc/Rprofile to allow the packages to be found.
>
> However, using R.Version() gives me
>
>   > R.Version()$minor
>   [1] "4.3"
>
> I can obviously extract the "real" minor version from the string, but
> shouldn't there be a more straightforward way to obtain the part of the
> version that is used in .libPaths() by default?
>
> Or am I misunderstanding something?
>
> Cheers,
>
> Loris
>
> --
> Dr. Loris Bennett (Mr.)
> ZEDAT, Freie Universität Berlin         Email loris.bennett at fu-berlin.de
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/
> posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

	[[alternative HTML version deleted]]



More information about the R-help mailing list