Skip to content
Prev 61752 / 63421 Next

_R_CHECK_DEPENDS_ONLY_ vs. packages in .Library [was: Check package without suggests]

(Moving this one idea to R-devel)

? Wed, 19 Jul 2023 09:21:46 +0200
Henrik Bengtsson <henrik.bengtsson at gmail.com> ?????:
Currently, a check with _R_CHECK_DEPENDS_ONLY_=TRUE assumes that
.Library only has base and recommended packages. This assumption can be
broken on macOS, and also on other operating systems when R is
installed into a writeable directory or is running without installation
(e.g. R-devel from an SVN checkout) and the user doesn't pre-create a
separate library.

What would be the downsides to implementing _R_CHECK_DEPENDS_ONLY_ the
same way that _R_CHECK_NO_RECOMMENDED_ is already implemented? The
latter works by creating fake packages (with a DESCRIPTION and an empty
file called "dummy_for_check" but nothing else in them) in a temporary
library that take precedence over the ones in .Library and fail loading.