- queryterm
Either a string with the full URL of a search
query in a register, or the data frame returned by
ctrGetQueryUrl or dbQueryHistory,
or an `_id` in the format of one of the trial registers,
or, together with register
, a string with query
elements of a search URL.
The query details are recorded in the collection
for
later use to update records.
For "CTIS", queryterm
can be an empty string to obtain
all trial records. For automatically copying the user's
query of a register in a web browser to the clipboard, see
here
- register
String with abbreviation of register to query,
either "EUCTR", "CTGOV2", "ISRCTN" or "CTIS". Not needed
if queryterm
has a full URL to query results,
or has a single trial identifier, or comes from
ctrGetQueryUrl or dbQueryHistory.
- querytoupdate
Either the word "last", or the row number of
a query in the data frame returned by dbQueryHistory that
should be run to retrieve any new or update trial records since
this query was run the last time.
This parameter takes precedence over queryterm
.
For "EUCTR", updates are available only for the last seven days;
the query is run again if more time has passed since it was
run last.
Does not work with "CTIS" at this time.
- forcetoupdate
If TRUE
, run again the query
given in querytoupdate
, irrespective of when it was
run last. Default is FALSE
.
- euctrresults
If TRUE
, also download available
results when retrieving and loading trials from EUCTR. This
slows down this function. (For "CTGOV2" and "CTIS",
available results are always retrieved and loaded into the
collection.)
- euctrresultshistory
If TRUE
, download results and also
the available history of results publication in "EUCTR."
This somewhat time-consuming. Default is FALSE
.
- ctgov2history
For trials from CTGOV2, retrieve historic
versions of the record. Default is FALSE
, because this
is a time-consuming operation. Use
n
for n from all versions (recommended),
1
for the first (original) version,
-1
for the last-but-one version,
"n:m"
for the nth to the mth versions, or
TRUE
for all versions
of the trial record to be retrieved. Note that for register
CTIS, historic versions were available in the `applications`
field only before the register's relaunch on 2024-06-17.
- ctishistory
If TRUE
, and only when using querytoupdate
,
move the current CTIS record into an array history
with the record
which holds one or more historic versions, before updating the rest of the
record from CTIS. Default is FALSE
, because this is a time-consuming
operation. See "Historic versions" in vignette("ctrdata_summarise")
.
- documents.path
If this is a relative or absolute
path to a directory that exists or can be created,
save any documents into it that are directly available from
the register ("EUCTR", "CTGOV2", "ISRCTN", "CTIS")
such as PDFs on results, analysis plans, spreadsheets,
patient information sheets, assessments or product information.
Default is NULL
, which disables saving documents.
For "EUCTR", sets euctrresults = TRUE
since documents
are available only with results.
- documents.regexp
Regular expression, case insensitive,
to select documents by filename, if saving documents is requested
(see documents.path
).
If set to NULL
, empty placeholder files are saved for
every document that could be saved, which is useful to get an overview
on the number and types of documents available for download.
Default is
"prot|sample|statist|sap_|p1ar|p2ars|icf|ctalett|lay|^[0-9]+ "
.
Used with "CTGOV2", "ISRCTN" and "CTIS" (for "EUCTR", all documents
are downloaded since they are few and have non-canonical filenames.)
- annotation.text
Text to be including into the field
"annotation" in the records retrieved with the query
that is to be loaded into the collection.
The contents of the field "annotation" for a trial record
are preserved e.g. when running this function again and
loading a record of a with an annotation, see parameter
annotation.mode
.
- annotation.mode
One of "append" (default), "prepend"
or "replace" for new annotation.text with respect to any
existing annotation for the records retrieved with the query
that is to be loaded into the collection.
- only.count
Set to TRUE
to return only the
number of trial records found in the register for the query.
Does not load trial information into the database.
Default is FALSE
.
- con
A database connection object, created with
nodbi
. See section `1 - Database connection` in
ctrdata.
- verbose
Printing additional information if set to
TRUE
; default is FALSE
.
- ...
Do not use (capture deprecated parameters).