Package: stbl 0.5.0.9001
stbl: Stabilize Objects
A set of consistent, opinionated functions to quickly check objects, coerce them to the desired configuration, or deliver informative error messages when that is not possible.
Authors:
stbl_0.5.0.9001.tar.gz
stbl_0.5.0.9001.zip(r-4.7-x86_64)stbl_0.5.0.9001.zip(r-4.7-arm64)stbl_0.5.0.9001.zip(r-4.6-x86_64)stbl_0.5.0.9001.zip(r-4.6-arm64)stbl_0.5.0.9001.zip(r-4.5-x86_64)
stbl_0.5.0.9001.tgz(r-4.6-x86_64)stbl_0.5.0.9001.tgz(r-4.6-arm64)stbl_0.5.0.9001.tgz(r-4.5-x86_64)stbl_0.5.0.9001.tgz(r-4.5-arm64)
stbl_0.5.0.9001.tar.gz(r-4.7-arm64)stbl_0.5.0.9001.tar.gz(r-4.7-x86_64)stbl_0.5.0.9001.tar.gz(r-4.6-arm64)stbl_0.5.0.9001.tar.gz(r-4.6-x86_64)
stbl_0.5.0.9001.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
stbl/json (API)
| # Install 'stbl' in R: |
| install.packages('stbl', repos = c('https://jonthegeek.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/wranglezone/stbl/issues
Pkgdown/docs site:https://stbl.wrangle.zone
Last updated from:48023af139. Checks:15 OK. Indexed: no.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | OK | 173 | ||
| linux-devel-x86_64 | OK | 220 | ||
| source / vignettes | OK | 181 | ||
| linux-release-arm64 | OK | 138 | ||
| linux-release-x86_64 | OK | 150 | ||
| macos-release-arm64 | OK | 160 | ||
| macos-release-x86_64 | OK | 415 | ||
| macos-oldrel-arm64 | OK | 124 | ||
| macos-oldrel-x86_64 | OK | 395 | ||
| windows-devel-arm64 | OK | 293 | ||
| windows-devel-x86_64 | OK | 214 | ||
| windows-release-arm64 | OK | 305 | ||
| windows-release-x86_64 | OK | 153 | ||
| windows-oldrel-x86_64 | OK | 187 | ||
| wasm-release | OK | 95 |
Exports:!!are_character_ishare_chr_ishare_dbl_ishare_double_ishare_factor_ishare_fct_ishare_fn_ishare_function_ishare_int_ishare_integer_ishare_lgl_ishare_logical_ishassert_containsassert_notassert_presentcaller_argcaller_envexpect_pkg_error_classesexpect_pkg_error_snapshotexpect_pkg_message_classesexpect_pkg_message_snapshotexpect_pkg_warning_classesexpect_pkg_warning_snapshotignore_stbl_erroris_character_ishis_chr_ishis_dbl_ishis_double_ishis_factor_ishis_fct_ishis_fn_ishis_function_ishis_int_ishis_integer_ishis_lgl_ishis_logical_ishlocale_datetime_formatsobject_typepkg_abortpkg_informpkg_warnregex_must_matchregex_must_not_matchreplace_stbl_errorspecify_all_ofspecify_any_ofspecify_characterspecify_character_scalarspecify_chrspecify_chr_scalarspecify_data_framespecify_datespecify_date_scalarspecify_datetimespecify_datetime_scalarspecify_dblspecify_dbl_scalarspecify_dfspecify_doublespecify_double_scalarspecify_dttmspecify_dttm_scalarspecify_durspecify_dur_scalarspecify_durationspecify_duration_scalarspecify_eachspecify_factorspecify_factor_scalarspecify_fctspecify_fct_scalarspecify_intspecify_int_scalarspecify_integerspecify_integer_scalarspecify_lglspecify_lgl_scalarspecify_listspecify_logicalspecify_logical_scalarspecify_lstspecify_one_ofspecify_timespecify_time_scalarstabilise_all_ofstabilise_any_ofstabilise_characterstabilise_character_scalarstabilise_chrstabilise_chr_scalarstabilise_data_framestabilise_datestabilise_date_scalarstabilise_datetimestabilise_datetime_scalarstabilise_dblstabilise_dbl_scalarstabilise_dfstabilise_doublestabilise_double_scalarstabilise_dttmstabilise_dttm_scalarstabilise_durstabilise_dur_scalarstabilise_durationstabilise_duration_scalarstabilise_eachstabilise_factorstabilise_factor_scalarstabilise_fctstabilise_fct_scalarstabilise_intstabilise_int_scalarstabilise_integerstabilise_integer_scalarstabilise_lglstabilise_lgl_scalarstabilise_liststabilise_logicalstabilise_logical_scalarstabilise_lststabilise_one_ofstabilise_timestabilise_time_scalarstabilize_all_ofstabilize_any_ofstabilize_argstabilize_arg_scalarstabilize_characterstabilize_character_scalarstabilize_chrstabilize_chr_scalarstabilize_data_framestabilize_datestabilize_date_scalarstabilize_datetimestabilize_datetime_scalarstabilize_dblstabilize_dbl_scalarstabilize_dfstabilize_doublestabilize_double_scalarstabilize_dttmstabilize_dttm_scalarstabilize_durstabilize_dur_scalarstabilize_durationstabilize_duration_scalarstabilize_eachstabilize_factorstabilize_factor_scalarstabilize_fctstabilize_fct_scalarstabilize_intstabilize_int_scalarstabilize_integerstabilize_integer_scalarstabilize_lglstabilize_lgl_scalarstabilize_liststabilize_logicalstabilize_logical_scalarstabilize_lststabilize_one_ofstabilize_presentstabilize_timestabilize_time_scalartoto_any_ofto_characterto_character_scalarto_chrto_chr_scalarto_data_frameto_dateto_date_scalarto_datetimeto_datetime_scalarto_dblto_dbl_scalarto_dfto_doubleto_double_scalarto_dttmto_dttm_scalarto_durto_dur_scalarto_durationto_eachto_factorto_factor_scalarto_fctto_fct_scalarto_fnto_functionto_intto_int_scalarto_integerto_integer_scalarto_lglto_lgl_scalarto_listto_logicalto_logical_scalarto_lstto_one_ofto_timeto_time_scalar
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Check if an object can be safely coerced to character | are_character_ish are_chr_ish are_chr_ish.default is_character_ish is_chr_ish |
| Check if an object can be safely coerced to double | are_dbl_ish are_dbl_ish.character are_dbl_ish.default are_dbl_ish.factor are_double_ish is_dbl_ish is_double_ish |
| Check if an object can be safely coerced to a factor | are_factor_ish are_fct_ish are_fct_ish.default is_factor_ish is_fct_ish |
| Check if an object can be safely coerced to a function | are_fn_ish are_function_ish is_fn_ish is_function_ish |
| Check if an object can be safely coerced to integer | are_integer_ish are_int_ish are_int_ish.character are_int_ish.default are_int_ish.factor is_integer_ish is_int_ish |
| Check if an object can be safely coerced to logical | are_lgl_ish are_lgl_ish.default are_logical_ish is_lgl_ish is_logical_ish |
| Require that x contains a number of elements matching a specification | assert_contains |
| Require a value not to match a specification | assert_not |
| Require a value to be non-NULL | assert_present |
| Test package error classes | expect_pkg_error_classes |
| Snapshot-test a package error | expect_pkg_error_snapshot |
| Test package message classes | expect_pkg_message_classes |
| Snapshot-test a package message | expect_pkg_message_snapshot |
| Test package warning classes | expect_pkg_warning_classes |
| Snapshot-test a package warning | expect_pkg_warning_snapshot |
| Ignore a stbl error class | ignore_stbl_error |
| Determine locale-aware date and date-time formats | locale_datetime_formats |
| Identify the class, type, etc of an object | object_type |
| Signal an error with standards applied | pkg_abort |
| Signal a message with standards applied | pkg_inform |
| Signal a warning with standards applied | pkg_warn |
| Create a regex matching rule | regex_must_match regex_must_not_match |
| Replace a stbl error with a custom message | replace_stbl_error |
| Create a specified all-of stabilizer function | specify_all_of |
| Create a specified any-of stabilizer function | specify_any_of |
| Create a specified character stabilizer function | specify_character specify_character_scalar specify_chr specify_chr_scalar |
| Create a specified date stabilizer function | specify_date specify_date_scalar |
| Create a specified double stabilizer function | specify_dbl specify_dbl_scalar specify_double specify_double_scalar |
| Create a specified data frame stabilizer function | specify_data_frame specify_df |
| Create a specified datetime stabilizer function | specify_datetime specify_datetime_scalar specify_dttm specify_dttm_scalar |
| Create a specified duration stabilizer function | specify_dur specify_duration specify_duration_scalar specify_dur_scalar |
| Create a specified each stabilizer function | specify_each |
| Create a specified factor stabilizer function | specify_factor specify_factor_scalar specify_fct specify_fct_scalar |
| Create a specified integer stabilizer function | specify_int specify_integer specify_integer_scalar specify_int_scalar |
| Create a specified logical stabilizer function | specify_lgl specify_lgl_scalar specify_logical specify_logical_scalar |
| Create a specified list stabilizer function | specify_list specify_lst |
| Create a specified one-of stabilizer function | specify_one_of |
| Create a specified time-of-day stabilizer function | specify_time specify_time_scalar |
| Try to coerce or validate x as all of several specs | stabilise_all_of stabilize_all_of |
| Try to coerce or validate x as one of several types | stabilise_any_of stabilize_any_of to_any_of |
| Ensure an object meets expectations | stabilize_arg stabilize_arg_scalar |
| Coerce to character with additional checks | stabilise_character stabilise_chr stabilize_character stabilize_chr |
| Coerce to length-1 character with additional checks | stabilise_character_scalar stabilise_chr_scalar stabilize_character_scalar stabilize_chr_scalar |
| Coerce to date with additional checks | stabilise_date stabilize_date |
| Coerce to length-1 date with additional checks | stabilise_date_scalar stabilize_date_scalar |
| Coerce to double with additional checks | stabilise_dbl stabilise_double stabilize_dbl stabilize_double |
| Coerce to length-1 double with additional checks | stabilise_dbl_scalar stabilise_double_scalar stabilize_dbl_scalar stabilize_double_scalar |
| Ensure a data frame meets expectations | stabilise_data_frame stabilise_df stabilize_data_frame stabilize_df |
| Coerce to date-time with additional checks | stabilise_datetime stabilise_dttm stabilize_datetime stabilize_dttm |
| Coerce to length-1 date-time with additional checks | stabilise_datetime_scalar stabilise_dttm_scalar stabilize_datetime_scalar stabilize_dttm_scalar |
| Coerce to duration with additional checks | stabilise_dur stabilise_duration stabilize_dur stabilize_duration |
| Coerce to length-1 duration with additional checks | stabilise_duration_scalar stabilise_dur_scalar stabilize_duration_scalar stabilize_dur_scalar |
| Ensure every element of x satisfies a single spec | stabilise_each stabilize_each |
| Coerce to factor with additional checks | stabilise_factor stabilise_fct stabilize_factor stabilize_fct |
| Coerce to length-1 factor with additional checks | stabilise_factor_scalar stabilise_fct_scalar stabilize_factor_scalar stabilize_fct_scalar |
| Coerce to integer with additional checks | stabilise_int stabilise_integer stabilize_int stabilize_integer |
| Coerce to length-1 integer with additional checks | stabilise_integer_scalar stabilise_int_scalar stabilize_integer_scalar stabilize_int_scalar |
| Coerce to logical with additional checks | stabilise_lgl stabilise_logical stabilize_lgl stabilize_logical |
| Coerce to length-1 logical with additional checks | stabilise_lgl_scalar stabilise_logical_scalar stabilize_lgl_scalar stabilize_logical_scalar |
| Ensure a list meets expectations | stabilise_list stabilise_lst stabilize_list stabilize_lst |
| Try to coerce or validate x as exactly one of several specifications | stabilise_one_of stabilize_one_of to_one_of |
| Coerce to time-of-day with additional checks | stabilise_time stabilize_time |
| Coerce to length-1 time-of-day with additional checks | stabilise_time_scalar stabilize_time_scalar |
| Convert a value to a target type | to to.array to.character to.data.frame to.Date to.default to.double to.factor to.function to.hms to.integer to.list to.logical to.NULL to.Period to.POSIXct |
| Coerce to character | to_character to_chr |
| Coerce to length-1 character | to_character_scalar to_chr_scalar |
| Coerce to date | to_date to_date.character to_date.factor to_date.integer to_date.NULL to_date.numeric to_date.POSIXct to_date.POSIXlt |
| Coerce to length-1 date | to_date_scalar |
| Coerce to double | to_dbl to_dbl.character to_dbl.factor to_dbl.NULL to_double |
| Coerce to length-1 double | to_dbl_scalar to_double_scalar |
| Ensure a data frame meets expectations | to_data_frame to_df to_df.NULL |
| Coerce to date-time | to_datetime to_dttm to_dttm.character to_dttm.Date to_dttm.factor to_dttm.integer to_dttm.NULL to_dttm.numeric to_dttm.POSIXct to_dttm.POSIXlt |
| Coerce to length-1 date-time | to_datetime_scalar to_dttm_scalar |
| Coerce to a duration | to_dur to_dur.character to_dur.difftime to_dur.factor to_dur.integer to_dur.NULL to_dur.numeric to_dur.Period to_duration |
| Coerce to length-1 duration | to_dur_scalar |
| Coerce each element of x with a single spec | to_each |
| Coerce to factor | to_factor to_fct to_fct.NULL |
| Coerce to length-1 factor | to_factor_scalar to_fct_scalar |
| Coerce to a function | to_fn to_fn.character to_fn.default to_fn.NULL to_function |
| Coerce to integer | to_int to_int.character to_int.factor to_int.NULL to_integer |
| Coerce to length-1 integer | to_integer_scalar to_int_scalar |
| Coerce to logical | to_lgl to_lgl.NULL to_logical |
| Coerce to length-1 logical | to_lgl_scalar to_logical_scalar |
| Ensure a list meets expectations | to_list to_lst to_lst.default to_lst.function to_lst.list to_lst.NULL |
| Coerce to time-of-day | to_time to_time.character to_time.difftime to_time.factor to_time.integer to_time.NULL to_time.numeric to_time.POSIXct to_time.POSIXlt |
| Coerce to length-1 time-of-day | to_time_scalar |