Re: [R-pkg-devel] spurious rchk warning

2017-11-21 Thread Patrick Perry
I think you're right, and I think I've found the offending code (https://github.com/patperry/r-utf8/blob/master/src/as_utf8.c#L111): if (!raw || ce == CE_BYTES || ce == CE_NATIVE) { if (!duped) { PROTECT(ans = duplicate(ans)); nprot++; duped = 1; }

Re: [R-pkg-devel] spurious rchk warning

2017-11-21 Thread Joshua Ulrich
On Mon, Nov 20, 2017 at 8:34 PM, Patrick Perry wrote: > One of my packages has what I believe to be spurious rchk warnings: > > From > https://raw.githubusercontent.com/kalibera/cran-checks/master/rchk/results/utf8.out > > Package utf8 version 1.1.0 > Package built using 73757/R 3.5.0; x86_64-pc-l

[R-pkg-devel] spurious rchk warning

2017-11-20 Thread Patrick Perry
One of my packages has what I believe to be spurious rchk warnings: From https://raw.githubusercontent.com/kalibera/cran-checks/master/rchk/results/utf8.out Package utf8 version 1.1.0 Package built using 73757/R 3.5.0; x86_64-pc-linux-gnu; 2017-11-20 22:02:23 UTC; unix Checked with rchk versi