[R-pkg-devel] False Positive WARNING in devtools::check_built
Duncan Murdoch
murdoch@dunc@n @end|ng |rom gm@||@com
Fri May 3 17:33:11 CEST 2019
On 03/05/2019 10:02 a.m., Jarrett Phillips wrote:
> Hello,
>
>
> I have run devtools::check_built() on my package tarball to ensure the
> presence of no ERRORS/WARNINGS or NOTES. The below WARNING was found:
That appears to be similar to this bug, which has been fixed in R-devel:
https://bugs.r-project.org/bugzilla/show_bug.cgi?id=17558
That fix only handled the case of an example using data() with the
package argument set to an expression, not a constant string. Does one
of your examples do that? Other possible functions which haven't been
fixed are "library", "require", "loadNamespace", "requireNamespace". If
you use one of those in an unusual way, that might be the cause.
If that doesn't help, I'd be willing to take a look at the tarball to
see if I can spot what's going on.
Duncan Murdoch
>
>
> W checking for unstated dependencies in examples ...
>
> Warning: parse error in file 'HACSim-Ex.R':
>
> 197:17: unexpected symbol
>
> 196: # user prompted to select appropriate FASTA file of
>
> 197: aligned/trimmed DNA
>
> ^
>
>
> My documentation doesn't run up to line 197. All documentation is below 100
> lines in length.
>
>
> Prior to a small fix (changing \dontrun to \donttest), my package had zero
> WARNINGS, ERRORS and NOTES.
>
>
> The WARNING seems to stem from the 'DNA' reference within the comment.
>
>
> Is the above WARNING a false positive?
>
>
> i recently updated to R 3.5.3, could this have caused this issue?
>
>
>
> Thanks!
>
>
>
> Cheers,
>
>
> Jarrett
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-package-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>
More information about the R-package-devel
mailing list