-
Notifications
You must be signed in to change notification settings - Fork 59
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
Method error with RCall 0.9 and DataFrames 0.11.3 #220
Comments
Try updating DataArrays. The new version of DataArrays has deprecated PooledDataArray. |
I tried updating to the master on RCall and DataArrays, but the same thing is happening
julia> Pkg.status("RCall")
- RCall 0.9.0+ master
julia> Pkg.status("DataArrays")
- DataArrays 0.7.0 master
julia> Pkg.status("DataFrames")
- DataFrames 0.11.3
… On Jan 4, 2018, at 7:18 PM, Randy Lai ***@***.***> wrote:
Try updating DataArrays. The new version of DataArrays has deprecated PooledDataArray.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#220 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AFK8lglxOwGSbsUuf1-aAQfi6xfsfx3Wks5tHZSFgaJpZM4RT7Cy>.
|
You should use CategoricalArrays.jl instead of PooledDataArrays. |
Closing as very stale at this point |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Trying to convert a data frame containing a PooledDataArray to R results in a MethodError
julia> r = RObject(j1)
ERROR: MethodError: no method matching sexp(::Type{RCall.StrSxp}, ::DataArrays.PooledDataArray{String,UInt16,1})
Closest candidates are:
sexp(::Type{RCall.StrSxp}, ::Symbol) at /Users/sjbespa/.julia/v0.6/RCall/src/convert/base.jl:217
sexp(::Type{RCall.StrSxp}, ::Ptr{RCall.CharSxp}) at /Users/sjbespa/.julia/v0.6/RCall/src/convert/base.jl:266
sexp(::Type{RCall.StrSxp}, ::AbstractString) at /Users/sjbespa/.julia/v0.6/RCall/src/convert/base.jl:267
...
Stacktrace:
[1] sexp(::DataArrays.PooledDataArray{String,UInt16,1}) at /Users/sjbespa/.julia/v0.6/RCall/src/convert/default.jl:192
[2] sexp(::Type{RCall.VecSxp}, ::DataFrames.DataFrame) at /Users/sjbespa/.julia/v0.6/RCall/src/convert/dataframe.jl:19
[3] RCall.RObject(::DataFrames.DataFrame) at /Users/sjbespa/.julia/v0.6/RCall/src/convert/default.jl:166
The text was updated successfully, but these errors were encountered: