From 1e9fb8f0a57bc1ca872054509c849759915075d0 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Mon, 9 Oct 2023 05:57:32 +0200 Subject: [PATCH] Switch R to using numargs --- ext/SciMLBaseRCallExt.jl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ext/SciMLBaseRCallExt.jl b/ext/SciMLBaseRCallExt.jl index 38a61a7f2..bdcd596a4 100644 --- a/ext/SciMLBaseRCallExt.jl +++ b/ext/SciMLBaseRCallExt.jl @@ -3,9 +3,8 @@ module SciMLBaseRCallExt using RCall: RFunction using SciMLBase -# Always assume a function from R is not in-place because copy-on-write disallows it! -function SciMLBase.isinplace(f::RFunction, args...; kwargs...) - false +function SciMLBase.numargs(f::RFunction) + R"formals"(f) end -end \ No newline at end of file +end