Interpolate Data for Smooth Animations
Overview
In order to create smooth animation between states of data, tweening is necessary. This package provides a range of functions for creating tweened data that can be used as basis for animation. Furthermore it adds a number of vectorized interpolaters for common R data types such as numeric, date and colour.
- Fix coercion bug from the switch to vctrs
- At
tween_at_t()for interpolating a full data frame at multiple locations
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- NOTE12 OK, 1 NOTE2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 27 (8 internal)includes a package overview page
- Examples that run
- 100%17 run in a plain check
- Exported functions with examples
- 65%
- Documented parameters
- 70%
- Return-value docs
- 88%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 85%
- Median days to close, 50 most recently updated closed issues
- 26
- Median days to close, 50 most recently updated closed PRs
- 28
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
9 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/thomasp85/tweenr on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2024-02-26 · The repository has a site deploy workflow
Dependencies
Installing tweenr adds 8 packages (6 with compiled code, 4.3 MB of source tarballs). Heaviest: farver 1.2 MB, vctrs 1.0 MB, rlang 766 KB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 2.0.3Latest
- RR 4.3.0 released · 2023-04-21
- 2.0.22022-09-06 · diff ↗
- 2.0.12022-08-22 · diff ↗
- 2.0.02022-08-17 · diff ↗ ·
added 29 exports
col_types<-, ease_type<-, frame_times<-, gen_data<-, generator_settings<-, keyframes<-, PHASE_LEVELS, add_keyframe, add_pause, col_classes, col_types, data_frame_to_gen, ease_type, frame_times, gen_along, gen_at, gen_components, gen_data, gen_events, gen_keyframe, gen_to_data_frame, generator_settings, get_frame, get_raw_frames, interpolate_custom_at, is_generator, keyframes, prepare_keyframes, vec_tween_class - RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 1.0.22021-03-23 · diff ↗
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- 1.0.12018-12-14 · diff ↗
- 1.0.02018-09-27 · diff ↗ ·
added 17 exports
%>%, .complete_states, .get_first_frame, .get_last_frame, .has_frames, .max_id, .with_later_frames, .with_prior_frames, close_state, keep_state, open_state, tween_along, tween_at, tween_components, tween_events, tween_fill, tween_state - RR 3.5.0 released · 2018-04-23
Package metadata
- First published
- 2016-02-11
- Total releases
- 11 / 10 yrs
- License
- MIT + file LICENSE OSI · relicensed from GPL (>= 2) in 1.0.0
- Minimum R
- ≥ 3.2.0
- Download size
- 571 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("tweenr")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-19, which the citation names so these numbers can be found later. More on citing and the projects behind them.