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

Strange error #394

Closed
andirey opened this issue Apr 18, 2021 · 1 comment
Closed

Strange error #394

andirey opened this issue Apr 18, 2021 · 1 comment

Comments

@andirey
Copy link

andirey commented Apr 18, 2021

I start getting a very strange error from the "feather" package in R:

Let say I write and read file

write_feather(mtcars, 'm')
read_feather('m')

The last one gives me

Error in check_dots_empty(action = signal) :
unused argument (action = signal)

I reinstalled the package, restarted sessions and etc, and still have no idea how to fix it.
R version 3.6.1 (2019-07-05)

Please, help me!

@andirey
Copy link
Author

andirey commented Apr 18, 2021

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
}

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