[Rd] Typo in Renviron.site in R 4.2.0 on Ubuntu?
Henrik Bengtsson
henr|k@bengt@@on @end|ng |rom gm@||@com
Sun May 8 19:43:26 CEST 2022
> ... The extra apostrophe does not seem to have created an issue during all those tests, or since, under either Debian or Ubuntu.
I think that is because the system library '/usr/lib/R/library' is
always appended at the end of the library path, so that non-existing
to folder (the one with the extra single quote appended) makes no
difference; it's silently ignored by R if used.
This begs the question, why is the system library added to the site
library path in the first place? I would argue that:
R_LIBS_SITE="/usr/local/lib/R/site-library/:${R_LIBS_SITE}"
is the correct way here.
/Henrik
On Sun, May 8, 2022 at 10:35 AM Dirk Eddelbuettel <edd using debian.org> wrote:
>
>
> On 8 May 2022 at 19:12, Michał Bojanowski wrote:
> | I installed R 4.2.0 on Ubuntu (from CRAN apt repository) and some
> | startup errors lead me to Renviron.site and it's last line:
> |
> | R_LIBS_SITE="/usr/local/lib/R/site-library/:${R_LIBS_SITE}:/usr/lib/R/library'"
> |
> | Note the unmatched single quote just before the closing double quote.
> | That's a typo, is it not?
>
> Good catch, thank you, and fixed!
>
> I altered that file / carried the setting over from Renviron at the beginning
> of the test cycle in the first or second alpha release. The extra apostrophe
> does not seem to have created an issue during all those tests, or since,
> under either Debian or Ubuntu. So three cheers to R for robustly parsing
> configs I may have messed up ;-)
>
> (And if I may: a more focussed venue for a bug report may have been the
> r-sig-debian list for R on Debian/Ubuntu, or a bug report at bugs.debian.org,
> or an email to me. My name is at the top of the file. No point in sending it
> to every mailbox of r-devel subscribers.)
>
> Thanks again, Dirk
>
> --
> dirk.eddelbuettel.com | @eddelbuettel | edd using debian.org
>
> ______________________________________________
> R-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
More information about the R-devel
mailing list