Skip to content

Typo in Renviron.site in R 4.2.0 on Ubuntu?

5 messages · Michal Bojanowski, Henrik Bengtsson, Dirk Eddelbuettel

#
Hi,

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?

~Michal
#
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
#
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 at debian.org> wrote:
#
Indeed. Sorry. I thought about it, but wasn't sure if the typo is on
the R-source level or rather Debian packaging...

Best, Michal
#
On 9 May 2022 at 00:43, Micha? Bojanowski wrote:
| > (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.)
| 
| Indeed. Sorry. I thought about it, but wasn't sure if the typo is on
| the R-source level or rather Debian packaging...

No worries! I am glad you brought it forward but, again, since I tried to
leave my name in the file I at least thought that made origin more obvious.

See you over at r-sig-debian which is a really useful and no-nonsense list.

Cheers, Dirk