RCall.jl icon indicating copy to clipboard operation
RCall.jl copied to clipboard

Ambiguity in getindex

Open rapus95 opened this issue 4 years ago • 0 comments

Is this intended? 🙈

MethodError: getindex(::RCall.RObject{RCall.VecSxp}, ::UnitRange{Int64}) is ambiguous. Candidates:

getindex(r::RCall.RObject{S}, I...) where S<:RCall.VectorListSxp in RCall at C:\Users\Aaron\.julia\packages\RCall\3mHXJ\src\methods.jl:155

getindex(r::RCall.RObject{S}, I::AbstractArray) where S<:RCall.VectorSxp in RCall at C:\Users\Aaron\.julia\packages\RCall\3mHXJ\src\methods.jl:89

Possible fix, define

getindex(::RCall.RObject{S}, ::AbstractArray) where S<:RCall.VectorListSxp

rapus95 avatar Jun 29 '21 12:06 rapus95