Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ambiguity with missing #436

Closed
rapus95 opened this issue Nov 5, 2021 · 2 comments
Closed

Ambiguity with missing #436

rapus95 opened this issue Nov 5, 2021 · 2 comments

Comments

@rapus95
Copy link

rapus95 commented Nov 5, 2021

MethodError: convert(::Type{Union{Missing, RCall.RObject{RCall.VecSxp}}}, ::RCall.RObject{RCall.VecSxp}) is ambiguous. Candidates:

convert(::Type{T}, x::T) where T>:Missing in Base at missing.jl:67

convert(::Type{T}, x) where T>:Missing in Base at missing.jl:69

convert(::Type{T}, r::RCall.RObject{S}) where {T, S<:RCall.Sxp} in RCall at C:\Users\Aaron\.julia\packages\RCall\iMDW2\src\convert\base.jl:1

Possible fix, define

convert(::Type{T}, ::RCall.RObject{S}) where {T>:Missing, S<:RCall.Sxp}

1. setindex!(::Vector{Union{Missing, RCall.RObject{RCall.VecSxp}}}, ::RCall.RObject{RCall.VecSxp}, ::Int64)@array.jl:839
2. restart_copyto_nonleaf!(::Vector{Union{Missing, RCall.RObject{RCall.VecSxp}}}, ::Vector{Missing}, ::Base.Broadcast.Broadcasted{Base.Broadcast.DefaultArrayStyle{1}, Tuple{Base.OneTo{Int64}}, typeof(getfield), Tuple{Base.Broadcast.Extruded{Vector{Module}, Tuple{Bool}, Tuple{Int64}}, Base.Broadcast.Extruded{Vector{Symbol}, Tuple{Bool}, Tuple{Int64}}}}, ::RCall.RObject{RCall.VecSxp}, ::Int64, ::Base.OneTo{Int64}, ::Int64, ::Int64)@broadcast.jl:1068
3. copyto_nonleaf!(::Vector{Missing}, ::Base.Broadcast.Broadcasted{Base.Broadcast.DefaultArrayStyle{1}, Tuple{Base.OneTo{Int64}}, typeof(getfield), Tuple{Base.Broadcast.Extruded{Vector{Module}, Tuple{Bool}, Tuple{Int64}}, Base.Broadcast.Extruded{Vector{Symbol}, Tuple{Bool}, Tuple{Int64}}}}, ::Base.OneTo{Int64}, ::Int64, ::Int64)@broadcast.jl:1085
4. copy@broadcast.jl:930[inlined]
5. materialize@broadcast.jl:883[inlined]
6. compute(::Module, ::Main.PlutoRunner.Computer)@PlutoRunner.jl:259
7. (::Main.PlutoRunner.var"#9#10"{Module})()@PlutoRunner.jl:385
8. run_inside_trycatch(::Module, ::Main.PlutoRunner.var"#9#10"{Module}, ::Main.PlutoRunner.ReturnProof)@PlutoRunner.jl:311
9. run_expression(::Module, ::Expr, ::Base.UUID, ::Tuple{Set{Symbol}, Set{Symbol}}, ::Bool)@PlutoRunner.jl:385
10. top-level scope@none:1
@palday
Copy link
Collaborator

palday commented Jun 9, 2023

Can you provide an MWE of how you reached this error?

@palday
Copy link
Collaborator

palday commented Jul 16, 2024

Closing as stale. If you can provide an MWE, then I'm happy to re-open.

@palday palday closed this as not planned Won't fix, can't repro, duplicate, stale Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants