Learn R Programming

ctrdata (version 1.5.2)

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

Description

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

Usage

ctrOpenSearchPagesInBrowser(input = "", register = "", copyright = FALSE, ...)

Arguments

input

Show results of search for queryterm in browser. To open the browser with a previous search, (register or) queryterm can be the output of ctrGetQueryUrl or can be one row 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).

...

Any additional parameter to use with browseURL, which is called by this function.

Value

Is always true, invisibly.

Examples

Run this code
# 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))
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab