From hugh@p@r@on@ge @ending from gm@il@com  Tue Aug 14 04:52:03 2018
From: hugh@p@r@on@ge @ending from gm@il@com (Hugh Parsonage)
Date: Tue, 14 Aug 2018 12:52:03 +1000
Subject: [Rd] premature use of startsWith in r75110
Message-ID: <CAJmOi+MOG1PdzF+9jhv-yESG0zjSY7zTrQD=6T=wUh-AcmayQQ@mail.gmail.com>

In r75110 at line 1846 in src/library/tools/R/check.R the following
line was changed

- if(length(grep("^Found the defunct/removed function", out8)))
+ if(any(startsWith(out8, "Found the defunct/removed function")))

However, if `out8` is NULL at this point (which is plausible), the
original returns FALSE, but the second returns an error. Recommend

+ if(!is.null(out8) && any(startsWith(out8, "Found the defunct/removed
function")))




Best,

HP



[Rd] premature use of startsWith in r75110
Hugh Parsonage