Code
create_query_data(queries = list(pregsmq), get_terms_fun = get_smq)
Condition
Error in `assert_db_requirements()`:
! `version` is not specified. This is expected for baskets.
i A basket is requested by query 1:
<query> object
prefix: "SMQ02"
name: auto
add_scope_num: FALSE
definition:
<basket_select> object
name: "Pregnancy and neonatal topics (SMQ)"
id: NULL
scope: "NARROW"
type: "smq"
Code
create_query_data(queries = list(sdg), get_terms_fun = get_sdg)
Condition
Error in `assert_db_requirements()`:
! `version` is not specified. This is expected for baskets.
i A basket is requested by query 1:
<query> object
prefix: "SDG01"
name: auto
add_scope_num: FALSE
definition:
<basket_select> object
name: "5-aminosalicylates for ulcerative colitis"
id: NULL
scope: "NA"
type: "sdg"
get_terms_fun
providedCode
create_query_data(queries = list(query(prefix = "SMQ02", id = auto, definition = basket_select(
name = "Pregnancy and neonatal topics (SMQ)", scope = "NARROW", type = "smq"))))
Condition
Error in `assert_db_requirements()`:
! `get_terms_fun` is not specified. This is expected for baskets.
i A basket is requested by query 1:
<query> object
prefix: "SMQ02"
name: auto
id: auto
add_scope_num: FALSE
definition:
<basket_select> object
name: "Pregnancy and neonatal topics (SMQ)"
id: NULL
scope: "NARROW"
type: "smq"
Code
sdg <- query(prefix = "CQ01", definition = cqterms)
Condition
Error in `validate_query()`:
! The auto keyword can be used for baskets only.
i It was provided for the `name` element.
Code
sdg <- query(name = "My CQ", id = auto, prefix = "CQ01", definition = cqterms)
Condition
Error in `validate_query()`:
! The auto keyword can be used for baskets only.
i It was provided for the `id` element.
Code
sdg <- query(name = "My CQ", prefix = "CQ01", definition = 1)
Condition
Error in `validate_query()`:
! `definition` expects a <basket_select> object, a data frame, or a list of data frames and <basket_select> objects.
i An object of the following class was provided: <numeric>
Code
assert_terms(terms = select(cqterms, -SRCVAR), source_text = "my test data")
Condition
Error in `assert_terms()`:
! Required variable `SRCVAR` is missing in my test data.
Code
assert_terms(terms = select(cqterms, -SRCVAR), source_text = "my test data",
expect_grpname = TRUE)
Condition
Error in `assert_terms()`:
! Required variables `SRCVAR` and `GRPNAME` are missing in my test data.
Code
assert_terms(terms = select(cqterms, SRCVAR), source_text = "my test data")
Condition
Error in `assert_terms()`:
! Variable `TERMCHAR` or `TERMNUM` is required.
None of them is in my test data.
i Provided variables: `SRCVAR`
Code
assert_terms(terms = 42, source_text = "object returned by calling get_mysmq()")
Condition
Error in `assert_terms()`:
! object returned by calling get_mysmq() is not a data frame but a function.
Code
assert_terms(terms = filter(cqterms, TERMNUM == 42), source_text = "object returned by calling get_my_smq")
Condition
Error in `assert_terms()`:
! object returned by calling get_my_smq does not contain any observations.
Code
assert_terms(terms = cqterms, expect_grpname = TRUE, source_text = "object returned by calling get_my_smq")
Condition
Error in `assert_terms()`:
! Required variable `GRPNAME` is missing in object returned by calling get_my_smq.
Code
assert_terms(terms = cqterms, expect_grpid = TRUE, source_text = "object returned by calling get_my_smq")
Condition
Error in `assert_terms()`:
! Required variable `GRPID` is missing in object returned by calling get_my_smq.
Code
basket_select(name = "My SMQ", id = 42, scope = "NARROW", type = "smq")
Condition
Error in `validate_basket_select()`:
! Either `id` or `name` has to be null.
Code
basket_select(scope = "NARROW", type = "smq")
Condition
Error in `validate_basket_select()`:
! Either `id` or `name` has to be non null.
Code
basket_select(id = 42, scope = "NARROW")
Condition
Error in `basket_select()`:
! argument "type" is missing, with no default
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.