Expand description
Reader for installed R package help databases (aliases, .rdx/.rdb,
and Meta/hsearch.rds), built on top of rd-rds.
An installed package directory looks like:
<pkg_dir>/help/<pkg>.rdx # RDS file: index
<pkg_dir>/help/<pkg>.rdb # concatenated binary records
<pkg_dir>/help/aliases.rds # RDS: named character vector alias -> topic
<pkg_dir>/Meta/hsearch.rds # RDS: help-search indexrd-helpdb does not discover installed packages (R’s .libPaths()
logic is out of scope): PackageHelpDb::open takes an explicit
package directory.
Structs§
- Package
Help Db - A reader over an installed R package’s compiled help database:
help/<pkg>.rdx+help/<pkg>.rdb, plus the siblinghelp/aliases.rdsandMeta/hsearch.rdsfiles.
Enums§
- Error
- Errors produced by
rd-helpdb.
Functions§
- decode_
rdb_ record - Decodes a single
.rdbrecord:bytesis the exact(offset, length)slice a.rdxindex entry points at, i.e. a 4-byte big-endian uncompressed-size prefix followed by a raw zlib deflate stream. The decompressed size is checked against the prefix before parsing. - read_
rds_ file - Reads a standalone (possibly compressed)
.rdsfile into anrd_rds::RObject.