[R-pkg-devel] Advice for addressing CRAN rejection
smallepsilon
@m@||ep@||on @end|ng |rom proton@me
Wed May 14 22:33:04 CEST 2025
On Wednesday, May 14th, 2025 at 10:51 AM, Tim Taylor <tim.taylor using 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.
More information about the R-package-devel
mailing list