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

Method error with RCall 0.9 and DataFrames 0.11.3 #220

Closed
protogeezer opened this issue Jan 5, 2018 · 4 comments
Closed

Method error with RCall 0.9 and DataFrames 0.11.3 #220

protogeezer opened this issue Jan 5, 2018 · 4 comments

Comments

@protogeezer
Copy link

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

@randy3k
Copy link
Member

randy3k commented Jan 5, 2018

Try updating DataArrays. The new version of DataArrays has deprecated PooledDataArray.

@protogeezer
Copy link
Author

protogeezer commented Jan 5, 2018 via email

@randy3k
Copy link
Member

randy3k commented Jan 5, 2018

You should use CategoricalArrays.jl instead of PooledDataArrays.

@palday
Copy link
Collaborator

palday commented Jun 9, 2023

Closing as very stale at this point

@palday palday closed this as completed Jun 9, 2023
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

3 participants