stringi (version 0.2-3)

stri_install_check: Installation-Related Utilities

Description

These functions are responsible for checking and guaranteeing that the ICU data library (icudt) is available and that stringi is ready to use.

Usage

stri_install_check(silent = FALSE)

stri_install_icudt(check = TRUE, path = NULL)

Arguments

silent
suppress diagnostic messages
check
enable stri_install_check() tests
path
path to install icudt to. If NULL, then file.path(find.package('stringi'), 'libs') will be used. Custom, non-default paths should not be used normally by stringi users.

Value

  • The functions return a logical value, invisibly. TRUE denotes that the requested operation has been completed successfully.

Details

ICU makes use of a wide variety of data tables to provide many of its services. Examples include converter mapping tables, collation rules, transliteration rules, break iterator rules and dictionaries, and other locale data.

Without the ICU data library (icudt) many stringi features will not be available. icudt size is approx. 10-20 MB.

stri_install_check() tests whether some ICU services are available. If they are not, it is most likely due to unavailable ICU data library.

stri_install_icudt() downloads and installs the ICU data library specific for your platform (little/big-endian). The downloaded file will be decompressed into the directory where the package has been installed, see find.package, so make sure you have sufficient write permissions.

References

ICU Data -- ICU User Guide, http://userguide.icu-project.org/icudata