[R-pkg-devel] devtools::check() shows a warning at the beginning, but not at the end

Duncan Murdoch murdoch@dunc@n @end|ng |rom gm@||@com
Wed Jul 24 14:15:16 CEST 2019


On 24/07/2019 8:00 a.m., Gábor Csárdi wrote:
> Strictly speaking this is not a devtools bug, because the warning is
> not coming from `R CMD check`, but from `devtools::document()`, which
> rebuilds the documentation via roxygen2, before actually running `R
> CMD check`.
> 
> Maybe `devtools::check()` should stop if `devtools::document()` throws
> a warning.

Or collect Roxygen issues and report on them at the end along with the R 
CMD check issues.

Duncan Murdoch

> 
> Gabor
> 
> On Wed, Jul 24, 2019 at 12:56 PM Duncan Murdoch
> <murdoch.duncan using gmail.com> wrote:
>>
>> On 24/07/2019 5:30 a.m., Sigbert Klinke wrote:
>>> Hi,
>>>
>>> when I called check() on my package I got a warning at the beginning
>>>
>>> Updating plot.matrix documentation
>>> Warnung: roxygen2 requires Encoding: UTF-8
>>> Warnung: @examples
>>> [/home/sigbert/syncthing/projekte/R/plot.matrix/R/as.cor.R#12]:
>>> mismatched braces or quotes
>>>
>>> but at the end it says
>>>
>>> ── R CMD check results ─── plot.matrix 1.3 ────
>>> Duration: 10.8s
>>>
>>> 0 errors ✔ | 0 warnings ✔ | 0 notes ✔
>>>
>>> Is that okay? The warning actually was correct.
>>>
>>
>> Looks like a bug in devtools.  It's probably looking for "Warning", and
>> not recognizing the German translation.
>>
>> Duncan Murdoch
>>
>> ______________________________________________
>> 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