Code
check_arguments(df, data_name = "df", x = "x", Y = "y", required_columns)
Condition
Error:
! argument 'y' is missing from function call.
Code
check_arguments(df, data_name = "df", a = "x", Y = "y", required_columns)
Condition
Error:
! arguments 'x', 'y' are missing from function call.
Code
err_message("x", error = "not found", arg_or_col = "argument")
Output
[1] "argument 'x' is not found \n"
Code
err_message(c("x", "y"), error = "not found", arg_or_col = "argument")
Output
[1] "arguments 'x', 'y' are not found \n"
Code
err_message(c("x"), error = "not found", arg_or_col = "column")
Output
[1] "column 'x' is not found \n"
Code
err_message(c("x", "y"), error = "not found", arg_or_col = "column")
Output
[1] "columns 'x', 'y' are not found \n"
Code
check_date_range(c("21-12-2007"))
Condition
Error:
! two valid dates required for date range.
Code
check_date_range(c("21-12-2007", "10-11-2007"))
Condition
Error:
! starting date must be before ending date in date range.
Code
make_warning(errorws = c(1, 3, 5, 7, 8, 9, 11), colvars = c("test_col"),
warning_message = "test warning message", print_all = TRUE)
Output
[1] "Column 'test_col' test warning message in 7 rows: 1, 3, 5, 7, 8, 9, 11"
Code
make_warning(errorws = c(1, 3, 5, 7, 8, 9, 11), colvars = c("test_col"),
warning_message = "test warning message", print_all = FALSE)
Output
[1] "Column 'test_col' test warning message in 7 rows: 1, 3, 5, 7, 8 ..."
Code
make_warning(errorws = c(1, 3, 5, 7, 8, 9, 11), colvars = c("test_col", "test2"),
warning_message = "test warning message", print_all = TRUE)
Output
[1] "Columns 'test_col', 'test2' test warning message in 7 rows: 1, 3, 5, 7, 8, 9, 11"
Code
make_warning(errorws = c(1, 3, 5, 7, 8, 9, 11), colvars = c("test_col", "test2"),
warning_message = "test warning message", print_all = FALSE)
Output
[1] "Columns 'test_col', 'test2' test warning message in 7 rows: 1, 3, 5, 7, 8 ..."
Code
find_multiple_atcs(atc_col = c("N03AB10", "N03AB20", "N03AB30"), package_col = c(
12345, 12345, 333455))
Condition
Error:
! Expected only one ATC-code by package number, exceptions found: 12345: N03AB10, N03AB20.
Code
find_multiple_atcs(atc_col = c("N03AB10", "N03AB20", "N03AB30", "N03AB40"),
package_col = c(12345, 12345, 22345, 22345))
Condition
Error:
! Expected only one ATC-code by package number, exceptions found: 12345: N03AB10, N03AB20; 22345: N03AB30, N03AB40.
Code
check_order(c(1, 2), c(3), c(4, 5))
Condition
Error in `check_order()`:
! length(lower) == length(usual) & length(usual) == length(upper) is not TRUE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.