From b117c439a949d7b94b8546f957dc21c329e01cde Mon Sep 17 00:00:00 2001 From: Anshul Singhvi Date: Tue, 7 May 2024 15:19:07 -0400 Subject: [PATCH] Don't specify `AbstractArray` for column types in DataFrame `rcopy` This allows other packages to hook into the conversion system when loading R DataFrames. --- src/convert/dataframe.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/convert/dataframe.jl b/src/convert/dataframe.jl index bb1153c9..ef899af3 100644 --- a/src/convert/dataframe.jl +++ b/src/convert/dataframe.jl @@ -12,7 +12,7 @@ function rcopy(::Type{T}, s::Ptr{VecSxp}; if normalizenames vnames = [Symbol(replace(string(v), '.' => '_')) for v in vnames] end - DataFrame([vec(rcopy(AbstractArray, c)) for c in s], vnames) + DataFrame([vec(rcopy(c)) for c in s], vnames) end ## DataFrame to sexp conversion.