From Kurt@Hornik @ending from wu@@c@@t  Tue Aug 14 06:55:53 2018
From: Kurt@Hornik @ending from wu@@c@@t (Kurt Hornik)
Date: Tue, 14 Aug 2018 06:55:53 +0200
Subject: [Rd] premature use of startsWith in r75110
In-Reply-To: <CAJmOi+MOG1PdzF+9jhv-yESG0zjSY7zTrQD=6T=wUh-AcmayQQ@mail.gmail.com>
References: <CAJmOi+MOG1PdzF+9jhv-yESG0zjSY7zTrQD=6T=wUh-AcmayQQ@mail.gmail.com>
Message-ID: <23410.24793.112685.591158@hornik.net>

>>>>> Hugh Parsonage writes:

Thanks, will fix.

Best
-k

> 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

> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



[Rd] premature use of startsWith in r75110
Kurt Hornik