Displaying 9 results from an estimated 9 matches for "r_user_dir".
2023 Jun 27
2
Correct use of tools::R_user_dir() in packages?
tools::R_user_dir() provides configurable directories for R packages
to write persistent information consistent with standard best
practices relative to each supported operating systems for
applications to store data, config, and cache information
respectively. These standard best practices include writing to
direc...
2023 Jun 28
1
Correct use of tools::R_user_dir() in packages?
...nce this function didn't exist
in early versions of `tools`.)
Cheers,
Carl
---
Carl Boettiger
http://carlboettiger.info/
On Wed, Jun 28, 2023 at 12:59?PM Simon Urbanek
<simon.urbanek at r-project.org> wrote:
>
> Carl,
>
> I think your statement is false, the whole point of R_user_dir() is for packages to have a well-defined location that is allowed - from CRAN policy:
>
> "For R version 4.0 or later (hence a version dependency is required or only conditional use is possible), packages may store user-specific data, configuration and cache files in their respective use...
2023 Jun 29
1
Correct use of tools::R_user_dir() in packages?
...> Cheers,
>
> Carl
>
> ---
> Carl Boettiger
> http://carlboettiger.info/
>
> On Wed, Jun 28, 2023 at 12:59?PM Simon Urbanek
> <simon.urbanek at r-project.org> wrote:
> >
> > Carl,
> >
> > I think your statement is false, the whole point of R_user_dir() is for packages to have a well-defined location that is allowed - from CRAN policy:
> >
> > "For R version 4.0 or later (hence a version dependency is required or only conditional use is possible), packages may store user-specific data, configuration and cache files in their resp...
2023 Mar 16
2
Request: better default R_LIBS_USER
...ld do the same: it should install packages to somewhere inside
| ~/.local by default.
Use of ~/.local is a fairly recent convention (relative to the time R has
been around, which is now decades) and one which R supports already eg in the
(rather useful) portable config directories:
> tools::R_user_dir("r2u")
[1] "/home/edd/.local/share/R/r2u"
>
Your best bet really to govern your .libPaths from your Rprofile.site and
Renviron.site rather than asking a few million R users to adjust from past
practice.
Also: personal preferences differ. I think of Linux as multi-ten...
2023 Mar 16
1
Request: better default R_LIBS_USER
Hi,
I see R by default installs packages in ~/R. I know I can change the
default directory with R_LIBS_USER, but software shouldn't be
polluting the home directory.
For example both python and node install packages to ~/.local/lib,
ruby to ~/.local/share. They don't install to for example ~/node.
R should do the same: it should install packages to somewhere inside
~/.local by default.
2023 Mar 17
1
Request: better default R_LIBS_USER
...packages to somewhere inside
> | ~/.local by default.
>
> Use of ~/.local is a fairly recent convention (relative to the time R has
> been around, which is now decades) and one which R supports already eg in the
> (rather useful) portable config directories:
>
> > tools::R_user_dir("r2u")
> [1] "/home/edd/.local/share/R/r2u"
> >
>
> Your best bet really to govern your .libPaths from your Rprofile.site and
> Renviron.site rather than asking a few million R users to adjust from past
> practice.
>
> Also: personal preferences...
2020 Apr 24
0
R 4.0.0 is released
...-axis for spineplot() and
cdplot() has been reversed.
* If the R_ALWAYS_INSTALL_TESTS environment variable is set to a
true value, R CMD INSTALL behaves as if the --install-tests
option is always specified. Thanks to Reinhold Koch for the
suggestion.
* New function R_user_dir() in package tools suggests paths
appropriate for storing R-related user-specific data,
configuration and cache files.
* capabilities() gains a new logical option Xchk to avoid warnings
about X11-related capabilities.
* The internal implementation of grid units has chang...
2020 Apr 24
0
R 4.0.0 is released
...-axis for spineplot() and
cdplot() has been reversed.
* If the R_ALWAYS_INSTALL_TESTS environment variable is set to a
true value, R CMD INSTALL behaves as if the --install-tests
option is always specified. Thanks to Reinhold Koch for the
suggestion.
* New function R_user_dir() in package tools suggests paths
appropriate for storing R-related user-specific data,
configuration and cache files.
* capabilities() gains a new logical option Xchk to avoid warnings
about X11-related capabilities.
* The internal implementation of grid units has chang...
2020 Apr 24
0
R 4.0.0 is released
...-axis for spineplot() and
cdplot() has been reversed.
* If the R_ALWAYS_INSTALL_TESTS environment variable is set to a
true value, R CMD INSTALL behaves as if the --install-tests
option is always specified. Thanks to Reinhold Koch for the
suggestion.
* New function R_user_dir() in package tools suggests paths
appropriate for storing R-related user-specific data,
configuration and cache files.
* capabilities() gains a new logical option Xchk to avoid warnings
about X11-related capabilities.
* The internal implementation of grid units has chang...