View source: R/ctrOpenSearchPagesInBrowser.R
ctrOpenSearchPagesInBrowser | R Documentation |
Open advanced search pages of register(s), or execute search in browser
ctrOpenSearchPagesInBrowser(url = "", register = "", copyright = FALSE)
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 |
(String) Full URL corresponding to the shortened url
in conjunction with register
if any, or invisibly
TRUE
if no url
is specified.
# 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, ])
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.