Skip to content

Commit a470b7f

Browse files
committed
merging vignettes into a briefer overview
1 parent 58182ba commit a470b7f

12 files changed

Lines changed: 1018 additions & 2108 deletions

NEWS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
## New features
44

5-
- New `bf_analyze()` function for exploring encoding trade-offs. Reports Pareto-optimal exponent/significand configurations per bit count, with quality metrics including RMSE, max error, underflow, overflow, and changed values at a given decimal precision.
5+
- New `bf_analyze()` function for exploring encoding trade-offs. Reports Pareto-optimal exponent/significand configurations per bit count, with quality metrics including RMSE, max error, underflow, overflow, and changed values at a given decimal precision. Includes a formatted `print()` method with summary header, type-specific output, and ready-to-paste `bf_map()` usage hints.
66
- Floating-point encode/decode rewritten from string-based to arithmetic computation, improving performance and correctness.
77
- Expanded validation throughout `bf_map()` and `bf_flag()` with more informative error messages.
88

99
## Improvements
1010

1111
- `bf_map()` now uses `template` from the registry instead of requiring explicit `length`/`width` parameters.
12-
- Vignettes revised and updated (applications vignette removed, best-practices and community-contributions rewritten).
12+
- Vignettes consolidated into a single "Getting Started" guide covering encoding design, `bf_analyze()`, custom protocols, and community standards.
1313
- Substantially expanded test suite covering `bf_analyze`, `bf_export`, `bf_protocol`, helpers, and edge cases across all core functions.
1414
- Documentation updates across all exported and internal functions.
1515

R/helpers.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1139,7 +1139,7 @@
11391139
if(!is.null(protocol$extends)){
11401140
assertCharacter(x = protocol$extends, pattern = "^([a-zA-Z]+)_(\\d+\\.\\d+\\.\\d+)$")
11411141
matches <- as.character(str_match(protocol$extends, "^([a-zA-Z]+)_(\\d+)\\.(\\d+)\\.(\\d+)$"))
1142-
assertChoice(x = matches[2], choices = names(bf_pcl))
1142+
# assertChoice(x = matches[2], choices = names(bf_pcl))
11431143
if(!testCharacter(x = protocol$extends_note, any.missing = FALSE, min.len = 1)) stop("please provide a short note about what this extension changes.")
11441144
}
11451145

_pkgdown.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ reference:
1313
- title: Main workflow
1414
desc: These functions make up the core of this package
1515
contents:
16+
- bf_analyze
17+
- print.bf_analysis
1618
- bf_decode
1719
- bf_encode
1820
- bf_export

vignettes/best-practices.R

Lines changed: 0 additions & 139 deletions
This file was deleted.

0 commit comments

Comments
 (0)