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