Learn R Programming

ctrdata (version 1.6.0)

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(url = "", register = "", copyright = FALSE, ...)

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

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