Learn R Programming

ctrdata (version 1.4.1)

ctrGetQueryUrlFromBrowser: Import from clipboard the URL of a search in one of the registers

Description

Import from clipboard the URL of a search in one of the registers

Usage

ctrGetQueryUrlFromBrowser(url = "", register = "")

Arguments

url

URL such as from the browser address bar. If not specified, clipboard contents will be checked for a suitable URL. Can also contain a query term such as from dbQueryHistory()["query-term"]

register

Optional name of register (i.e., "EUCTR" or "CTGOV") in case url is a query term

Value

A string of query parameters that can be used to retrieve data from the register.

A data frame with a query term and the register name that can directly be used in ctrLoadQueryIntoDb and in ctrOpenSearchPagesInBrowser

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
db <- nodbi::src_sqlite(
  collection = "my_collection"
)
ctrLoadQueryIntoDb(
  ctrGetQueryUrlFromBrowser(),
  con = db
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab