Skip to content

Commit

Permalink
Merge pull request #199 from JackDunnNZ/patch-1
Browse files Browse the repository at this point in the history
Fix for Suppressor 0.2.3
  • Loading branch information
Non-Contradiction authored Jul 13, 2023
2 parents fb8dcf8 + 4c645c4 commit c05473b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inst/julia/JuliaObject.jl
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ end
## we should use JuliaObject for general AbstractArray
@static if julia07
@suppress_err begin
JuliaCall.sexpclass(x :: AbstractArray{T}) where {T} = RClass{:JuliaObject}
@eval JuliaCall.sexpclass(x :: AbstractArray{T}) where {T} = RClass{:JuliaObject}
end

## AbstractArray{Any} should be converted to R List
sexpclass(x :: AbstractArray{Any}) = RClass{:list}
else
@suppress_err begin
JuliaCall.sexp(x :: AbstractArray{T}) where {T} = sexp(JuliaObject(x))
@eval JuliaCall.sexp(x :: AbstractArray{T}) where {T} = sexp(JuliaObject(x))
end

## AbstractArray{Any} should be converted to R List
Expand Down

1 comment on commit c05473b

@ChrisRackauckas
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes the issues with the current release. Can it get released to CRAN?

Please sign in to comment.