DO NOT USE THESE FUNCTIONS WITH STRINGS NOT KNOWN TO BE NULL TERMINATED.
Low level C string manipulation functions intended for use from C code in other R packages. Some functions are exposed via R for testing purposes, but there is no point in using those since base R already implements all of the functionality in this package.
The main use of the package is for the C functions therein that are
R_RegisterCCallabled. The functions include versions of
sprintf that stop looking for a NULL terminator if they don't find one after a
certain number of characters to avoid undefined behavior. Note however that
this is of limited value if you do not know the buffer size as you can still
read past the end of the buffer.
The functions also use
R_alloc to allocate memory for strings that need to be
copied, and do not use POSIX only functions like
The contents of this package have been partly integrated into vetr. Some day we might resume development of this package on a stand alone basis, but don't hold your breath.
This package is only available on github:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.