On Wednesday, May 14th, 2025 at 10:51 AM, Tim Taylor <tim.tay...@hiddenelephants.co.uk> wrote:
> I'd just use all.equal but I think you could just check the call is > constructed correctly, e.g. > > convenient_modify_matrix <- function(mat) modify_matrix(mat, other_args = > default) > > identical( > body(convenient_modify_matrix), > call("modify_matrix", quote(mat), other_args = quote(default)) > ) I wondered whether something such as that is possible, but unfortunately, in the actual package, the calls might be different. For example, a function might use an intermediate result saved in one object so the earlier calculations need not be repeated. The calculations in both cases should be exactly the same, though. ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel