ctrLoadQueryIntoDbCtgov: ctrLoadQueryIntoDbCtgov

Description Usage Arguments

View source: R/main.R

Description

ctrLoadQueryIntoDbCtgov

Usage

1
2
3
ctrLoadQueryIntoDbCtgov(queryterm, register, querytoupdate, euctrresults,
  annotation.text, annotation.mode, details, parallelretrievals, debug,
  collection, db, url, username, password, verbose, queryupdateterm)

Arguments

queryterm

Either a string with the full URL of a search in a register or the data frame returned by the ctrGetQueryUrlFromBrowser or the dbQueryHistory functions. The queryterm is recorded in the collection ns for later use to update records.

register

Vector of abbreviations of registers to query, defaults to "EUCTR"

querytoupdate

Either the word "last" to re-run the last query that was loaded into the collection, or the integer number of query to be run again; see dbQueryHistory. This parameter takes precedence over queryterm.

euctrresults

If TRUE, also download available results when retrieving and loading trials from EUCTR. This slows down this function. (For CTGOV, all available results are retrieved and loaded from ctrdata version 0.9.10 onwards.)

annotation.text

Text to be including in the records retrieved with the current query, in the field "annotation".

annotation.mode

One of "append" (default), "prepend" or "replace" for new annotation.text with respect to any existing annotation for the records retreived with the current query.

details

If TRUE (default), retrieve full protocol-related information from EUCTR or XML data from CTGOV, depending on the register selected. This gives all of the available details for the trials. Alternatively, set to FALSE to retrieve only summary information from EUCTR or CSV data from CTGOV. The full EUCTR information includes separate records for every country in which the trial is opened; use function dbFindUniqueEuctrRecord in a subsequent step to limit to one record from EUCTR per trial

parallelretrievals

Number of parallel downloads of information from the register

debug

Printing additional information if set to TRUE; default is FALSE.

collection

Name of collection (default is "ctrdata")

db

Name of database (default is "users")

url

Address of the mongodb server in mongo connection string URI format http://docs.mongodb.org/manual/reference/connection-string/ (default is mongodb://localhost)

username

In case access requires credentials.

password

In case access requires credentials.

verbose

Print information.


rfhb/ctrdata documentation built on Jan. 15, 2019, 2:24 a.m.