CRAN Package Check Results for Package admiral

Last updated on 2022-11-30 23:54:34 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.8.4 17.55 325.97 343.52 OK
r-devel-linux-x86_64-debian-gcc 0.8.4 14.11 241.03 255.14 OK
r-devel-linux-x86_64-fedora-clang 0.8.4 396.76 ERROR
r-devel-linux-x86_64-fedora-gcc 0.8.4 394.35 ERROR
r-devel-windows-x86_64 0.8.4 45.00 410.00 455.00 OK
r-patched-linux-x86_64 0.8.4 20.88 252.22 273.10 ERROR
r-release-linux-x86_64 0.8.4 12.56 271.24 283.80 OK
r-release-macos-arm64 0.8.4 96.00 OK
r-release-macos-x86_64 0.8.4 133.00 OK
r-release-windows-x86_64 0.8.4 78.00 375.00 453.00 OK
r-oldrel-macos-arm64 0.8.4 109.00 OK
r-oldrel-macos-x86_64 0.8.4 147.00 OK
r-oldrel-windows-ix86+x86_64 0.8.4 32.00 359.00 391.00 OK

Check Details

Version: 0.8.4
Check: examples
Result: ERROR
    Running examples in ‘admiral-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: create_query_data
    > ### Title: Creates a queries dataset as input dataset to the
    > ### 'dataset_queries' argument in 'derive_vars_query()'
    > ### Aliases: create_query_data
    > ### Keywords: der_occds
    >
    > ### ** Examples
    >
    > library(tibble)
    > library(magrittr, warn.conflicts = FALSE)
    > library(dplyr, warn.conflicts = FALSE)
    > library(admiral.test)
    > library(admiral)
    >
    > # creating a query dataset for a customized query
    > cqterms <- tribble(
    + ~TERM_NAME, ~TERM_ID,
    + "APPLICATION SITE ERYTHEMA", 10003041L,
    + "APPLICATION SITE PRURITUS", 10003053L
    + ) %>%
    + mutate(TERM_LEVEL = "AEDECOD")
    >
    > cq <- query(
    + prefix = "CQ01",
    + name = "Application Site Issues",
    + definition = cqterms
    + )
    >
    > create_query_data(queries = list(cq))
    # A tibble: 2 × 5
     TERM_NAME TERM_ID TERM_LEVEL VAR_PREFIX QUERY_NAME
     <chr> <int> <chr> <chr> <chr>
    1 APPLICATION SITE ERYTHEMA 10003041 AEDECOD CQ01 Application Site Iss…
    2 APPLICATION SITE PRURITUS 10003053 AEDECOD CQ01 Application Site Iss…
    >
    > # create a query dataset for SMQs
    > pregsmq <- query(
    + prefix = "SMQ02",
    + id = auto,
    + definition = smq_select(
    + name = "Pregnancy and neonatal topics (SMQ)",
    + scope = "NARROW"
    + )
    + )
    >
    > bilismq <- query(
    + prefix = "SMQ04",
    + definition = smq_select(
    + id = 20000121L,
    + scope = "BROAD"
    + )
    + )
    >
    > # The get_smq_terms function from admiral.test is used for this example.
    > # In a real application a company-specific function must be used.
    > create_query_data(
    + queries = list(pregsmq, bilismq),
    + get_smq_fun = admiral.test:::get_smq_terms,
    + meddra_version = "20.1"
    + )
    Error in assert_function(get_smq_fun, params = c("smq_select", "version", :
     object 'get_smq_terms' not found
    Calls: create_query_data -> assert_function
    Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc

Version: 0.8.4
Check: examples
Result: ERROR
    Running examples in ‘admiral-Ex.R’ failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: create_query_data
    > ### Title: Creates a queries dataset as input dataset to the
    > ### 'dataset_queries' argument in 'derive_vars_query()'
    > ### Aliases: create_query_data
    > ### Keywords: der_occds
    >
    > ### ** Examples
    >
    > library(tibble)
    > library(magrittr, warn.conflicts = FALSE)
    > library(dplyr, warn.conflicts = FALSE)
    > library(admiral.test)
    > library(admiral)
    >
    > # creating a query dataset for a customized query
    > cqterms <- tribble(
    + ~TERM_NAME, ~TERM_ID,
    + "APPLICATION SITE ERYTHEMA", 10003041L,
    + "APPLICATION SITE PRURITUS", 10003053L
    + ) %>%
    + mutate(TERM_LEVEL = "AEDECOD")
    >
    > cq <- query(
    + prefix = "CQ01",
    + name = "Application Site Issues",
    + definition = cqterms
    + )
    >
    > create_query_data(queries = list(cq))
    # A tibble: 2 × 5
     TERM_NAME TERM_ID TERM_LEVEL VAR_PREFIX QUERY_NAME
     <chr> <int> <chr> <chr> <chr>
    1 APPLICATION SITE ERYTHEMA 10003041 AEDECOD CQ01 Application Site Iss…
    2 APPLICATION SITE PRURITUS 10003053 AEDECOD CQ01 Application Site Iss…
    >
    > # create a query dataset for SMQs
    > pregsmq <- query(
    + prefix = "SMQ02",
    + id = auto,
    + definition = smq_select(
    + name = "Pregnancy and neonatal topics (SMQ)",
    + scope = "NARROW"
    + )
    + )
    >
    > bilismq <- query(
    + prefix = "SMQ04",
    + definition = smq_select(
    + id = 20000121L,
    + scope = "BROAD"
    + )
    + )
    >
    > # The get_smq_terms function from admiral.test is used for this example.
    > # In a real application a company-specific function must be used.
    > create_query_data(
    + queries = list(pregsmq, bilismq),
    + get_smq_fun = admiral.test:::get_smq_terms,
    + meddra_version = "20.1"
    + )
    Error in assert_function(get_smq_fun, params = c("smq_select", "version", :
     object 'get_smq_terms' not found
    Calls: create_query_data -> assert_function
    Execution halted
Flavor: r-patched-linux-x86_64