SCM

Forum: help

Monitor Forum | Start New Thread Start New Thread
RE: CRAN check error caused by rgl plot in vignette? [ Reply ]
By: Duncan Murdoch on 2017-01-16 14:22
[forum:43808]
No, I'm sure they are aware of it.

RE: CRAN check error caused by rgl plot in vignette? [ Reply ]
By: Clemens Schmid on 2017-01-16 13:06
[forum:43807]
OK - thanks. I will consider it.

Do you think it's useful to mention this bug/feature request to the r-devel mailinglist? Maybe it's possible to update pandoc on the test systems.

RE: CRAN check error caused by rgl plot in vignette? [ Reply ]
By: Duncan Murdoch on 2017-01-16 12:13
[forum:43806]
I think it makes no difference. You can't have avoidable warnings or errors in a CRAN submission. This is a problem with the test platform, not with your package (assuming you have declared dependencies properly).

RE: CRAN check error caused by rgl plot in vignette? [ Reply ]
By: Clemens Schmid on 2017-01-16 11:49
[forum:43805]
If I add this two lines a the beginning of my vignettes the Solaris CRAN check will produce an error when building the vignettes. But as far as I understood it, it's better to have warnings than errors when releasing to CRAN. Therefore it would be better to avoid this solution, or?

RE: CRAN check error caused by rgl plot in vignette? [ Reply ]
By: Duncan Murdoch on 2017-01-16 00:46
[forum:43800]
You can check for a sufficient pandoc version using this code:


if (requireNamespace("rmarkdown") && !rmarkdown::pandoc_available("1.13.1"))
stop("These vignettes assume pandoc version 1.13.1; older versions will not work.")

rgl does something like that (but with a warning); I may change it to an error, since the older versions of pandoc really don't work.

RE: CRAN check error caused by rgl plot in vignette? [ Reply ]
By: Clemens Schmid on 2017-01-15 21:59
[forum:43799]
Thanks a lot for the fast reply!

I see now, that rgl by itself seems to have a comparable problem: https://cran.r-project.org/web/checks/check_results_rgl.html

Your idea to first of all check the pandoc version seems to be good, but I don't know how to implement such a change to the usual build procedure.

At the moment I think I'm going to sit it out and wait for a fix instead of again spending hours just for the solaris setup.

RE: CRAN check error caused by rgl plot in vignette? [ Reply ]
By: Duncan Murdoch on 2017-01-15 21:34
[forum:43798]
I believe the problem is that those test systems don't have a current version of pandoc installed, so htmlwidgets falls back to an earlier version, which fails.

You may be able to avoid the Solaris problem by saying your package has a SystemRequirement of pandoc version >= 1.12.3, or (don't ask me how) checking for that version and not producing a document if it is not found.

I'm not sure what went wrong on OSX.

CRAN check error caused by rgl plot in vignette? [ Reply ]
By: Clemens Schmid on 2017-01-15 21:27
[forum:43797]
Hey rgl developers,

I'm using your excellent package to create some nice 3D plots in the vignette of my package recexcavaar (https://cran.r-project.org/web/packages/recexcavAAR/index.html + https://github.com/ISAAKiel/recexcavAAR). Unfortunately I get a nasty, almost undebuggable warning from three CRAN test systems: https://cran.r-project.org/web/checks/check_results_recexcavAAR.html

Quitting from lines 46-61 (recexcavAAR-vignette-1.Rmd)
Error: processing vignette 'recexcavAAR-vignette-1.Rmd' failed with diagnostics:
cannot open the connection

I'm not 100% sure it's a problem with rgl, but the mentioned lines relate to a rgl plot. Do you have an Idea what could cause this problem on solaris and osx?

Thanks a lot!

Thanks to:
Vienna University of Economics and Business Powered By FusionForge