[R-pkg-devel] How to debug CRAN errors?

Maëlle SALMON m@e||e@@@|mon @end|ng |rom y@hoo@@e
Thu Mar 14 13:50:10 CET 2019


 To follow up on the great answers regarding R-hub,- to use R-hub Linux Docker images you can use this brand-new rhub function https://r-hub.github.io/rhub/reference/local_check_linux.html (untested on Windows)- here's WIP R-hub docs entry about choosing a platform to reproduce an error https://docs.r-hub.io/#rhub-cran-platforms
Maëlle.




    Den torsdag 14 mars 2019 08:48:34 CET, David Hugh-Jones <davidhughjones using gmail.com> skrev:  
 
 Thank you! Got it. This should be close enough to CRAN, and there’s a
Docker image available too.

On Thu, 14 Mar 2019 at 00:40, Duncan Murdoch <murdoch.duncan using gmail.com>
wrote:

> On 13/03/2019 8:34 p.m., David Hugh-Jones wrote:
> >
> > Hi guys
> >
> > That might be it. But there was no error until the latest release -
> > whereas that test has been there for 9 months. The file is written
> > within testthat... is there a new check for this in CRAN?
> >
> > Meanwhile, I am still figuring out how to debug this problem. I uploaded
> > to r-hub... does anyone know how I can access the artifacts created
> > after the build? The URL build was
> >
> >
> https://builder.r-hub.io/status/huxtable_4.4.0.tar.gz-b91485ad24b7a2f9c73bad2d51ebdb9d
>
> You should have got an email giving the link.  In the ones I've seen,
> you replace the prefix
>
> https://builder.r-hub.io/status/
>
> with
>
> https://artifacts.r-hub.io/
>
> and you'll see them.  It works for yours.
>
> Duncan Murdoch
>
> >
> > David
> >
> >
> >
> >      > By the way, I think your test test should write to a file in [a
> >      > subdirectory of]] tempdir(), not to a file in the current
> directory.
> >
> >    That could be the source of the error:  it's a violation of CRAN
> policy
> >    to write to the current directory.  An obvious way to test this
> >    would be
> >    to make it unwriteable.
> >
> >    Duncan Murdoch
> >
> >      >
> >      > comes from
> >      > Bill Dunlap
> >      > TIBCO Software
> >      > wdunlap tibco.com <http://tibco.com>
> >      >
> >      >
> >      > On Wed, Mar 13, 2019 at 8:50 AM David Hugh-Jones
> >    <davidhughjones using gmail.com <mailto:davidhughjones using gmail.com>>
> >      > wrote:
> >      >>
> >      >> Hi all,
> >      >>
> >      >> My package has errors on CRAN's Linux and Solaris:
> >      >>
> >      >>
> https://cran.r-project.org/web/checks/check_results_huxtable.html
> >      >>
> >      >> which I can't reproduce on my local OSX Machine, nor on Linux on
> >    Travis.
> >      >>
> >      >> Does anyone have any general hints on how to reproduce and/or
> >    debug such
> >      >> errors?
> >      >>
> >      >> Specifically the error relates to a call to
> openxlsx::saveWorkbook
> >      >> producing a message. openxlsx hasn't changed recently, though.
> >      >>
> >      >> Cheers,
> >      >> David
> >      >>
> >      >>          [[alternative HTML version deleted]]
> >      >>
> >      >> ______________________________________________
> >      >> R-package-devel using r-project.org
> >    <mailto:R-package-devel using r-project.org> mailing list
> >      >> https://stat.ethz.ch/mailman/listinfo/r-package-devel
> >      >
> >      >      [[alternative HTML version deleted]]
> >      >
> >      > ______________________________________________
> >      > R-package-devel using r-project.org
> >    <mailto:R-package-devel using r-project.org> mailing list
> >      > https://stat.ethz.ch/mailman/listinfo/r-package-devel
> >      >
> >
>
> --
Sent from Gmail Mobile

    [[alternative HTML version deleted]]

______________________________________________
R-package-devel using r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel  
	[[alternative HTML version deleted]]



More information about the R-package-devel mailing list