:exclamation: This is a read-only mirror of the CRAN R package repository. ctrdata — Retrieve and Analyze Clinical Trials in Public Registers. Homepage: https://cran.r-project.org/package=ctrdata, https://rfhb.github.io/ctrdata/ Report bugs for this package: https://github.com/rfhb/ctrdata/issues
Hi,
When trying to query a trial, I get this error:
ctrLoadQueryIntoDb(
queryterm = "NCT02437890",
register = "CTGOV2",
con = db
)
Not overruling register label CTGOV2
* Found search query from CTGOV2: term=NCT02437890
* Checking trials using CTGOV API 2.0.0.-test, found 1 trials
(1/3) Downloading in 1 batch(es) (max. 1000 trials each; estimate: 0.1 MB total)
(2/3) Converting to NDJSON...
(3/3) Importing records into database...
JSON file #: 1 / 1
= Imported or updated 1 trial(s)
Error: no such function: jsonb_extract
I can't find the function jsonb_extract referenced in the source code, or anywhere, and I get the error whether I install from CRAN or build, or use other trial IDs. The sqlite file was built fine in the previous command
db <- nodbi::[src_sqlite](https://docs.ropensci.org/nodbi/reference/src_sqlite.html)(
dbname = "sqlite_file.sql",
collection = "test"
)
Hi, When trying to query a trial, I get this error:
I can't find the function jsonb_extract referenced in the source code, or anywhere, and I get the error whether I install from CRAN or build, or use other trial IDs. The sqlite file was built fine in the previous command
Do you have any idea why I get this error?
Thanks