ctrOpenSearchPagesInBrowser {ctrdata} | R Documentation |
Open register to show query results or search page
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. To open the
browser with a previous search, the output of ctrGetQueryUrl
or dbQueryHistory can be used. Can be left as empty string
(default) to open the advanced search page of |
register |
Register(s) to open, "EUCTR", "CTGOV2", "ISRCTN" or "CTIS". Default is empty string, and this opens the advanced search page of the register(s). |
copyright |
(Optional) If set to |
Value
(String) Full URL corresponding to the shortened url
in conjunction with register
if any, or invisibly
TRUE
if no url
is specified.
Examples
# Open all and check copyrights before using registers
ctrOpenSearchPagesInBrowser(copyright = TRUE)
# Open specific register advanced search page
ctrOpenSearchPagesInBrowser(register = "CTGOV2")
ctrOpenSearchPagesInBrowser(register = "CTIS")
ctrOpenSearchPagesInBrowser(register = "EUCTR")
ctrOpenSearchPagesInBrowser(register = "ISRCTN")
# Open all queries that were loaded into demo collection
dbc <- nodbi::src_sqlite(
dbname = system.file("extdata", "demo.sqlite", package = "ctrdata"),
collection = "my_trials"
)
dbh <- dbQueryHistory(
con = dbc
)
for (r in seq_len(nrow(dbh))) {
ctrOpenSearchPagesInBrowser(dbh[r, ])
}
[Package ctrdata version 1.19.1 Index]