ctrOpenSearchPagesInBrowser: Open advanced search pages of register(s) or execute search...

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Open advanced search pages of register(s) or execute search in browser

Usage

1

Arguments

url

of search results page to show in the browser. May be the output of ctrGetQueryUrl or from dbQueryHistory.

register

Register(s) to open. Either "EUCTR" or "CTGOV" or a vector of both. Default is to open both registers' advanced search pages. To open the browser with a previous search, the output of ctrGetQueryUrl or one row from dbQueryHistory can be used.

copyright

(Optional) If set to TRUE, opens copyright pages of register(s).

...

May include the deprecated input parameter.

Value

Is always true, invisibly.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
## Not run: 
ctrOpenSearchPagesInBrowser(
 "https://www.clinicaltrialsregister.eu/ctr-search/search?query=cancer")

# for this example, the clipboard has to
# contain the URL from a search in a register
ctrOpenSearchPagesInBrowser(
 ctrGetQueryUrl())

# open the last query that was
# loaded into the database
db <- nodbi::src_sqlite(
  collection = "previously_created"
)
ctrOpenSearchPagesInBrowser(
  dbQueryHistory(con = db))

## End(Not run)

ctrdata documentation built on Nov. 22, 2021, 1:06 a.m.