[Rd] installing from source

Ben Bolker
Sun, 27 Dec 2020 20:02:47 -0000

There is a recurring issue with installing from source into paths
that contain single quotes/apostrophes. "Why would anyone do that??"
is
certainly a legitimate response to such a problem, but I would also say
this constitutes a legitimate bug.  Would replacing both single-quotes
below with \\' solve the problem?
    I'm happy to post this (with a patch if my fix seems appropriate) on
r-bugzilla.

   cheers
     Ben Bolker

line 1672 of src/library/tools/R/install.R :

   cmd <- paste0("tools:::.test_load_package('", pkg_name,
"', ",
quote_path(lib), ")")