Coder Social home page Coder Social logo

Strange error about feather HOT 1 CLOSED

andirey avatar andirey commented on June 26, 2024
Strange error

from feather.

Comments (1)

andirey avatar andirey commented on June 26, 2024

Here is a solution I found at the end:

devtools::install_github("tidyverse/tibble", force = TRUE)
The problem lies in updated code for 'read_feather' function. It now using 'as_tibble' function. By updating 'tibble' package this starts working fine.

Here is the code of 'read_feather' in new version:

tibble: 3.1.0 - feather: 0.3.5 - read_feather

function (path, columns = NULL)
{
data <- feather(path)
on.exit(close(data), add = TRUE)
if (is.null(columns))
as_tibble(data)
else as_tibble(data[columns])
}
Here is the code of 'read_feather' in previous version:

tibble: 3.0.1 - feather: 0.3.5 - read_feather

function (file, col_select = NULL, as_data_frame = TRUE, ...)
{
reader <- FeatherTableReader$create(file, ...)
all_columns <- ipc___feather___TableReader__column_names(reader)
col_select <- enquo(col_select)
columns <- if (!quo_is_null(col_select)) {
vars_select(all_columns, !!col_select)
}
out <- reader$Read(columns)
if (isTRUE(as_data_frame)) {
out <- as.data.frame(out)
}
out
}

from feather.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.