- using R Under development (unstable) (2025-07-15 r88411)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
clang version 20.1.8
flang version 20.1.8
- running under: Fedora Linux 42 (Workstation Edition)
- using session charset: UTF-8
- using option ‘--no-stop-on-test-error’
- checking for file ‘ragnar/DESCRIPTION’ ... OK
- this is package ‘ragnar’ version ‘0.2.0’
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘ragnar’ can be installed ... [32s/106s] OK
See the install log for details.
- used C compiler: ‘clang version 20.1.8’
- checking installed package size ... OK
- checking package directory ... OK
- checking ‘build’ directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [5s/18s] OK
- checking whether the package can be loaded with stated dependencies ... [5s/14s] OK
- checking whether the package can be unloaded cleanly ... [5s/16s] OK
- checking whether the namespace can be loaded with stated dependencies ... [5s/14s] OK
- checking whether the namespace can be unloaded cleanly ... [6s/21s] OK
- checking loading without being on the library search path ... [5s/21s] OK
- checking whether startup messages can be suppressed ... [5s/15s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [36s/92s] OK
- checking Rd files ... OK
- checking Rd metadata ... OK
- checking Rd line widths ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking line endings in shell scripts ... OK
- checking line endings in C/C++/Fortran sources/headers ... OK
- checking pragmas in C/C++ headers and code ... OK
- checking compilation flags used ... OK
- checking compiled code ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [18s/116s] ERROR
Running examples in ‘ragnar-Ex.R’ failed
The error most likely occurred in:
> ### Name: ragnar_store_create
> ### Title: Create and connect to a vector store
> ### Aliases: ragnar_store_create ragnar_store_connect
>
> ### ** Examples
>
> # A store with a dummy embedding
> store <- ragnar_store_create(
+ embed = \(x) matrix(stats::runif(10), nrow = length(x), ncol = 10),
+ version = 1
+ )
> ragnar_store_insert(store, data.frame(text = "hello"))
>
> # A store with a schema. When inserting into this store, users need to
> # provide an `area` column.
> store <- ragnar_store_create(
+ embed = \(x) matrix(stats::runif(10), nrow = length(x), ncol = 10),
+ extra_cols = data.frame(area = character()),
+ version = 1
+ )
> ragnar_store_insert(store, data.frame(text = "hello", area = "rag"))
>
> # If you already have a data.frame with chunks that will be inserted into
> # the store, you can quickly create a suitable store with `vec_ptype()`:
> chunks <- data.frame(text = letters, area = "rag")
> store <- ragnar_store_create(
+ embed = \(x) matrix(stats::runif(10), nrow = length(x), ncol = 10),
+ extra_cols = vctrs::vec_ptype(chunks),
+ version = 1
+ )
> ragnar_store_insert(store, chunks)
>
> # version = 2 (the default) has support for deoverlapping
> store <- ragnar_store_create(
+ # if embed = NULL, then only bm25 search is used (not vss)
+ embed = NULL
+ )
> doc <- MarkdownDocument(
+ paste0(letters, collapse = ""),
+ origin = "/some/where"
+ )
> chunks <- markdown_chunk(doc, target_size = 3, target_overlap = 2 / 3)
> chunks$context <- substring(chunks$text, 1, 1)
> chunks
# @document@origin: /some/where
# A tibble: 24 × 4
start end context text
<int> <int> <chr> <chr>
1 1 3 a abc
2 2 4 b bcd
3 3 5 c cde
4 4 6 d def
5 5 7 e efg
6 6 8 f fgh
7 7 9 g ghi
8 8 10 h hij
9 9 11 i ijk
10 10 12 j jkl
# ℹ 14 more rows
> ragnar_store_insert(store, chunks)
> ragnar_store_build_index(store)
*** caught segfault ***
address 0x7a89500, cause 'memory not mapped'
Traceback:
1: rapi_execute(stmt, convert_opts)
2: withCallingHandlers(expr, condition = function(cnd) { { .__handler_frame__. <- TRUE .__setup_frame__. <- frame if (inherits(cnd, "message")) { except <- c("warning", "error") } else if (inherits(cnd, "warning")) { except <- "error" } else { except <- "" } } while (!is_null(cnd)) { if (inherits(cnd, "error")) { out <- handlers[[1L]](cnd) if (!inherits(out, "rlang_zap")) throw(out) } inherit <- .subset2(.subset2(cnd, "rlang"), "inherit") if (is_false(inherit)) { return() } cnd <- .subset2(cnd, "parent") }})
3: doTryCatch(return(expr), name, parentenv, handler)
4: tryCatchOne(expr, names, parentenv, handlers[[1L]])
5: tryCatchList(expr, classes, parentenv, handlers)
6: tryCatch(withCallingHandlers(expr, condition = function(cnd) { { .__handler_frame__. <- TRUE .__setup_frame__. <- frame if (inherits(cnd, "message")) { except <- c("warning", "error") } else if (inherits(cnd, "warning")) { except <- "error" } else { except <- "" } } while (!is_null(cnd)) { if (inherits(cnd, "error")) { out <- handlers[[1L]](cnd) if (!inherits(out, "rlang_zap")) throw(out) } inherit <- .subset2(.subset2(cnd, "rlang"), "inherit") if (is_false(inherit)) { return() } cnd <- .subset2(cnd, "parent") }}), stackOverflowError = handlers[[1L]])
7: rlang::try_fetch(rapi_execute(stmt, convert_opts), error = function(e) { rethrow_error_from_rapi(e, call)})
8: rethrow_rapi_execute(res@stmt_lst$ref, duckdb_convert_opts_impl(res@connection@convert_opts, arrow = res@arrow))
9: duckdb_execute(res)
10: duckdb_result(connection = conn, stmt_lst = stmt_lst, arrow = arrow)
11: .local(conn, statement, ...)
12: dbSendQuery(conn, statement, ...)
13: dbSendQuery(conn, statement, ...)
14: dbSendStatement(conn, statement, ...)
15: dbSendStatement(conn, statement, ...)
16: dbExecute(con, "INSTALL fts; LOAD fts;")
17: dbExecute(con, "INSTALL fts; LOAD fts;")
18: ragnar_store_build_index_v2(store, type)
19: ragnar_store_build_index(store)
An irrecoverable exception occurred. R is aborting now ...
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [13s/43s] OK
Running ‘testthat.R’ [12s/42s]
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... OK
- checking PDF version of manual ... [10s/24s] OK
- checking HTML version of manual ... OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 1 ERROR