NEWS
milestoneR 0.4.0
- New
export_milestones_yaml() writes the whole Milestones database to plain-text YAML
files: one file per milestone (milestones/<slug>.yaml), plus authors.yaml,
references.yaml and vocabulary.yaml (aspects, subjects, keywords). Within a milestone
file, authors, references and keywords are given by name or key rather than integer id, so
the files are easy to edit and to keep under version control.
- New
read_milestones_yaml() reads such a folder back into the package's tables, checking
that every author, reference, keyword, aspect and subject that a milestone names exists.
Reading back the export reproduces all 12 tables (checked in dev/check-yaml-roundtrip.R).
- All 297 milestones are exported to
data-raw/yaml/ (by data-raw/export-yaml.R). These
files are intended to become the editable source of the package data, replacing the MySQL
database at datavis.ca.
- The export also cleans up some problems in the data: duplicate rows in the link tables
(4 in
milestone2keyword, 2 in milestone2reference), links to authors not in author
(aid 1 = "Unknown", and a deleted aid 45), the aspect/subject 0 placeholder for one
milestone, a duplicated bibtexkey (Ocagne:1885), CRLF line endings, and the MySQL
"zero date" 0000-00-00.
yaml is now imported.
- Fixed: after
library(milestoneR), accessor functions such as milestone(), aspect(),
keyword(), reference() and mediaitem() failed with "could not find function",
because the lazy-loaded datasets of the same names masked them. LazyData is now false.
The accessors load their data themselves, so get the data with milestone() etc. (or
data(milestone, package = "milestoneR")).
- Examples use base R (
subset(), split()) instead of dplyr. The authors(),
keyword() and milestone() examples are no longer wrapped in \dontrun{}, so
R CMD check now runs them. R CMD check is clean (0 errors, warnings and notes).
- TODO: read additions/edits from a simple tagged-text format (as in
statquotes), e.g.
read_milestones_txt().
milestoneR 0.3.0
- Re-design to use the
.csv files from the Milestones Project database directly in the package, rather than using any DBI stuff
- Fixed HTML entities to use latin1 / utf8 encoding in the Milestones .RData files.
- Added missing aspect/subject/keyword datasets
- All data tables now available via accessor functions like
authors(), milestone()
- Added
print_reference(), print_author()` w/ output to text, html, markdown, bibtex
- Implement
print_milestone() method with helper functions
- Added search_* functions
- Display media items [link|image] in the print method
- Added CLI output support to
print_milestone() via result = "cli" parameter for enhanced console output with clickable links
print_milestone_cli() is now a convenience wrapper around print_milestone(result = "cli")
- Fixed NULL values in references and milestones tables: NULL -> NA
- Converted roxygen documentation to use markdown, via
roxygen2md::roxygen2md()
- Added "Getting Started" vignette demonstrating search, filter, and print functions
- Added functions to work with "epochs" in history
milestoneR 0.0.0.9000
- Initial package, with database files (
data-raw/) and R datasets (data/)
- Added a
NEWS.md file to track changes to the package.