mgirlich / tibblify

Rectangle Nested Lists
https://mgirlich.github.io/tibblify/
GNU General Public License v3.0
67 stars 2 forks source link

Field is absent in colmajor #185

Open ramiromagno opened 1 year ago

ramiromagno commented 1 year ago

It's spitting C guts, probably it should not.

library(tibblify)

tibblify(tibble::tibble(a = "x"), spec = tspec_df(
  tib_chr("a")
))
#> # A tibble: 1 × 1
#>   a    
#>   <chr>
#> 1 x

tibblify(tibble::tibble(a = "x"), spec = tspec_df(
  a = tib_chr("a")
))
#> # A tibble: 1 × 1
#>   a    
#>   <chr>
#> 1 x

tibblify(tibble::tibble(b = "x"), spec = tspec_df(
  tib_chr("a")
))
#> Error in `tibblify()`:
#> ! Problem while tibblifying `x$a`
#> Caused by error in `withCallingHandlers()`:
#> ! Field is absent in colmajor.
#> ℹ In file 'add-value.c' at line 395.
#> ℹ This is an internal error that was detected in the base package.
#> Backtrace:
#>     ▆
#>  1. ├─tibblify::tibblify(tibble::tibble(b = "x"), spec = tspec_df(tib_chr("a")))
#>  2. │ └─rlang::try_fetch(...)
#>  3. │   ├─base::tryCatch(...)
#>  4. │   │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
#>  5. │   │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
#>  6. │   │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
#>  7. │   └─base::withCallingHandlers(...)
#>  8. └─rlang:::stop_internal_c_lib(...)
#>  9.   └─rlang::abort(message, call = call, .internal = TRUE, .frame = frame)

tibblify(tibble::tibble(a = "x"), spec = tspec_df(
  a = tib_chr("x")
))
#> Error in `tibblify()`:
#> ! Problem while tibblifying `x$x`
#> Caused by error in `withCallingHandlers()`:
#> ! Field is absent in colmajor.
#> ℹ In file 'add-value.c' at line 395.
#> ℹ This is an internal error that was detected in the base package.
#> Backtrace:
#>     ▆
#>  1. ├─tibblify::tibblify(tibble::tibble(a = "x"), spec = tspec_df(a = tib_chr("x")))
#>  2. │ └─rlang::try_fetch(...)
#>  3. │   ├─base::tryCatch(...)
#>  4. │   │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
#>  5. │   │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
#>  6. │   │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
#>  7. │   └─base::withCallingHandlers(...)
#>  8. └─rlang:::stop_internal_c_lib(...)
#>  9.   └─rlang::abort(message, call = call, .internal = TRUE, .frame = frame)

tibblify(tibble::tibble(a = "x"), spec = tspec_df(
  tib_chr("x")
))
#> Error in `tibblify()`:
#> ! Problem while tibblifying `x$x`
#> Caused by error in `withCallingHandlers()`:
#> ! Field is absent in colmajor.
#> ℹ In file 'add-value.c' at line 395.
#> ℹ This is an internal error that was detected in the base package.
#> Backtrace:
#>     ▆
#>  1. ├─tibblify::tibblify(tibble::tibble(a = "x"), spec = tspec_df(tib_chr("x")))
#>  2. │ └─rlang::try_fetch(...)
#>  3. │   ├─base::tryCatch(...)
#>  4. │   │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
#>  5. │   │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
#>  6. │   │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
#>  7. │   └─base::withCallingHandlers(...)
#>  8. └─rlang:::stop_internal_c_lib(...)
#>  9.   └─rlang::abort(message, call = call, .internal = TRUE, .frame = frame)

tibblify(tibble::tibble(b = "x"), spec = tspec_df(
  tib_chr("x")
))
#> Error in `tibblify()`:
#> ! Problem while tibblifying `x$x`
#> Caused by error in `withCallingHandlers()`:
#> ! Field is absent in colmajor.
#> ℹ In file 'add-value.c' at line 395.
#> ℹ This is an internal error that was detected in the base package.
#> Backtrace:
#>     ▆
#>  1. ├─tibblify::tibblify(tibble::tibble(b = "x"), spec = tspec_df(tib_chr("x")))
#>  2. │ └─rlang::try_fetch(...)
#>  3. │   ├─base::tryCatch(...)
#>  4. │   │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
#>  5. │   │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
#>  6. │   │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
#>  7. │   └─base::withCallingHandlers(...)
#>  8. └─rlang:::stop_internal_c_lib(...)
#>  9.   └─rlang::abort(message, call = call, .internal = TRUE, .frame = frame)

Created on 2023-06-27 with reprex v2.0.2