Skip to content
Prev 16070 / 21307 Next

[Bioc-devel] New setting on devel builders will cause some new package failures

This is great news.  For those who wish to reproduce this locally when
running R CMD check, I suggest creating '~/.R/check.Renviron' with:

## Check for bugs like if (c(TRUE, FALSE)) ... Supported since R 3.4.0
_R_CHECK_LENGTH_1_CONDITION_=package:_R_CHECK_PACKAGE_NAME_,verbose

## Check for bugs like c(TRUE, FALSE) && TRUE. Supported since R 3.6.0
_R_CHECK_LENGTH_1_LOGIC2_=package:_R_CHECK_PACKAGE_NAME_,verbose

These environment variables will be applied only when running 'R CMD
check'.  The 'package:_R_CHECK_PACKAGE_NAME_' part makes sure these
bugs trigger check ERRORs only on the package being tested, i.e. you
can check for these bugs in your package also when one of your
dependencies have this bug.

If you want to detect these errors when you run R in general, e.g. in
your analysis, you can add:

_R_CHECK_LENGTH_1_CONDITION_=${_R_CHECK_LENGTH_1_CONDITION_-verbose}
_R_CHECK_LENGTH_1_LOGIC2_=${_R_CHECK_LENGTH_1_LOGIC2_-verbose}

to your ~/.Renviron.  This will trigger a run-time error whenever and
wherever this bug occurs.  If you prefer to get warnings instead of
errors, use 'warn,verbose' instead of 'verbose'.  If you find these
mistakes in other packages, please consider taking the time to report
the maintainer.

/Henrik

On Fri, Jan 24, 2020 at 6:07 AM Shepherd, Lori
<Lori.Shepherd at roswellpark.org> wrote:
Message-ID: <CAFDcVCQ7Nh4H7fncqkjugFboXTWaGC_3vm6YCcfMkA+rOecAew@mail.gmail.com>
In-Reply-To: <MN2PR12MB40778A0F92FDC056B82B4FE6F90E0@MN2PR12MB4077.namprd12.prod.outlook.com>