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

Error in `vec_rbind() #1963

Open
onishkx opened this issue Feb 5, 2025 · 4 comments
Open

Error in `vec_rbind() #1963

onishkx opened this issue Feb 5, 2025 · 4 comments

Comments

@onishkx
Copy link

onishkx commented Feb 5, 2025

! c() method returned a vector of unexpected size 325 instead of 323.
i In file c.c at line 412.
i This is an internal error that was detected in the vctrs package.
Please report it at https://github.com/r-lib/vctrs/issues with a reprex and the full backtrace.
Backtrace:
x

  1. +-global multinma.tte(...)
  2. | -multinma::nma(...)
  3. | -dplyr::bind_rows(...)
  4. | -vctrs::vec_rbind(!!!dots, .names_to = .id, .error_call = current_env())
  5. -rlang:::stop_internal_c_lib(...)
  6. -rlang::abort(message, call = call, .internal = TRUE, .frame = frame)
    Warning message:
    Prior distributions were left at default values:
    prior_aux = half_normal(location = 0, scale = 10)
@ryanhaac
Copy link

I think I am having a similar issue here:

Error in vec_rbind():
! Negative n in compact_rep().
i In file utils.c at line 897.
i Install the winch package to get additional debugging info the next time you get this error.
i This is an internal error that was detected in the vctrs package.
Please report it at https://github.com/r-lib/vctrs/issues with a reprex and the full backtrace.
Backtrace:
x

  1. +-dplyr::bind_rows(ch_df, this_ch_frame)
  2. | -vctrs::vec_rbind(!!!dots, .names_to = .id, .error_call = current_env())
  3. -rlang:::stop_internal_c_lib(...)
  4. -rlang::abort(message, call = call, .internal = TRUE, .frame = frame)
    #> Error in parse(text = input): :1:7: unexpected 'in'
    #> 1: Error in
    #> ^

@ryanhaac
Copy link

I think this is similar to an issue I just ran into:

Error in vec_rbind():
! Negative n in compact_rep().
i In file utils.c at line 897.
i Install the winch package to get additional debugging info the next time you get this error.
i This is an internal error that was detected in the vctrs package.
Please report it at https://github.com/r-lib/vctrs/issues with a reprex and the full backtrace.
Backtrace:
x

  1. +-dplyr::bind_rows(ch_df, this_ch_frame)
  2. | -vctrs::vec_rbind(!!!dots, .names_to = .id, .error_call = current_env())
  3. -rlang:::stop_internal_c_lib(...)
  4. -rlang::abort(message, call = call, .internal = TRUE, .frame = frame)
    #> Error in parse(text = input): :1:7: unexpected 'in'
    #> 1: Error in
    #> ^

@DavisVaughan
Copy link
Member

@ryanhaac we do have a bad error here, but we often see "Negative n in compact_rep()" when you are vec_rbind()ing two data frames that result in >2 billion rows, which is larger than R can handle

@ryanhaac
Copy link

Yes - you are exactly right! Thanks

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