[R-pkg-team] Bug#980902: r-cran-tmb: prints warning when rmatrix is upgraded

Andreas Tille tille at debian.org
Mon Jan 25 09:21:24 GMT 2021


Hi Graham,

On Mon, Jan 25, 2021 at 10:31:36AM +0200, Graham Inggs wrote:
> Control: tags -1 + patch
> 
> The attached patch upgrades the warning() to a stop().
> This will cause r-cran-tmb's autopkgtests to fail whenever rmatrix is upgraded.
> Then we will know it is time for a rebuild, or a new upload.
> 
> Let me know if this seems a reasonable solution, and I'll do a team upload.

Looks sensible.  As I mention before team uploads are always welcome.  So
please go for it.

Thanks a lot, Andreas.

> --- a/R/zzz.R
> +++ b/R/zzz.R
> @@ -15,7 +15,7 @@
>      }
>      TMB.Matrix.version <- readLines(file)
>      if(!identical(TMB.Matrix.version, cur.Matrix.version)) {
> -        warning(
> +        stop(
>              "Package version inconsistency detected.\n",
>              "TMB was built with Matrix version ",
>              TMB.Matrix.version,


-- 
http://fam-tille.de



More information about the R-pkg-team mailing list