New Upstream Snapshot - r-cran-tweenr

Ready changes

Summary

Merged new upstream version: 2.0.2+git20220906.1.2d1ef71 (was: 2.0.2).

Resulting package

Built on 2023-01-20T05:19 (took 10m43s)

The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:

apt install -t fresh-snapshots r-cran-tweenr-dbgsymapt install -t fresh-snapshots r-cran-tweenr

Lintian Result

Diff

diff --git a/DESCRIPTION b/DESCRIPTION
index 82b3f52..66520ae 100644
--- a/DESCRIPTION
+++ b/DESCRIPTION
@@ -1,7 +1,7 @@
 Package: tweenr
 Type: Package
 Title: Interpolate Data for Smooth Animations
-Version: 2.0.2
+Version: 2.0.2.9000
 Authors@R: 
     c(person(given = "Thomas Lin",
              family = "Pedersen",
@@ -22,11 +22,10 @@ Depends: R (>= 3.2.0)
 Imports: farver, magrittr, rlang, vctrs
 LinkingTo: cpp11 (>= 0.4.2)
 RoxygenNote: 7.2.1
+Roxygen: list(markdown=TRUE)
 Suggests: testthat, covr
 SystemRequirements: C++11
 NeedsCompilation: yes
-Packaged: 2022-09-06 07:43:28 UTC; thomas
+Packaged: 2023-01-20 05:13:33 UTC; root
 Author: Thomas Lin Pedersen [aut, cre]
     (<https://orcid.org/0000-0002-5147-4711>)
-Repository: CRAN
-Date/Publication: 2022-09-06 08:00:02 UTC
diff --git a/MD5 b/MD5
deleted file mode 100644
index 1e294e9..0000000
--- a/MD5
+++ /dev/null
@@ -1,84 +0,0 @@
-789c2eeb64197d1d48879ee67dc5ad8e *DESCRIPTION
-928d886d4e8454f3db823a37d4de465f *LICENSE
-571e6a775e95e68ad2d2a9e5ca91af78 *NAMESPACE
-9366f6d66342240e75bcfe63941acb5c *NEWS.md
-aa3700bd529296bd7f880898ebf31fcb *R/aaa.R
-a93f9ddd26b6dcebbe939e5d383bc8d0 *R/cpp11.R
-032419b5cfcaa8dd4107e3e7c3cf2bec *R/display_ease.R
-e0dcf8b140456be7f23522ec503537f0 *R/gen.R
-3f55f9434499334e795db6232c52a61b *R/gen_along.R
-297f25a2a95668e61c62bf245b0f3f3d *R/gen_at.R
-15f2dd5455d010dad621ca60365d815d *R/gen_components.R
-6b6181391b707dcf022cc0806945481a *R/gen_events.R
-d8b1b9a11b6e7d671b2bf7655acd1ca9 *R/gen_keyframe.R
-85e33107d458aa7821bf206394d74c7f *R/get_frame.R
-1ac0df76576a151692f9c0a58d53c7df *R/interpolate_along.R
-f41f120cf0de9d09d2ff236c37a489af *R/interpolate_at.R
-3109b63161f1a23565237170280dc985 *R/interpolate_element.R
-9a4b0eb24099905046926d6d382bf5d9 *R/interpolate_element_at.R
-bc67f086154b598278a118b5c91a5cbb *R/interpolate_fill.R
-565d499fc4f2f22813be2b78254a5dda *R/interpolate_state.R
-f0b516aa6708b94984b827d1efd15308 *R/tween.R
-33b4d85caddce41f07eda2744ff913c8 *R/tween_along.R
-98b4f6b93c1f27b50efd1c6f9a380e7a *R/tween_appear.R
-f33fa3816daf134c03e819aef448f2c0 *R/tween_at.R
-7757b66240d489dfd06891a4b4bcd626 *R/tween_colour.R
-aa288673d4573622acf04bdf9b9bbaae *R/tween_components.R
-e2bf81312be495522d36feace8ca4291 *R/tween_constant.R
-81d553e0dabc78640045286414615d9c *R/tween_date.R
-c043ef5f53d196435d92b7502733ed98 *R/tween_datetime.R
-97a45463e42668b5a98b0b1d1201a7e5 *R/tween_elements.R
-3fc00521e8bf1076ed4dec2dd637b90f *R/tween_events.R
-8d2d40175112d9250bbf643846105c5f *R/tween_fill.R
-3fbebb9b93bfc70f98c8d4da699a7517 *R/tween_numeric.R
-a0c7c4a3094eadf3dd2eb1e556aa9823 *R/tween_state.R
-7a48e1410bb61e800d0962dc5ae1a958 *R/tween_states.R
-13b07fd6cd55f184f53414e5a8a06ca8 *R/tweenr_package.R
-dce8272174233e0d904fd6626a494bcc *README.md
-006d520fdb51f615fa84db95ca6b4076 *man/display_ease.Rd
-34366927919391bd1a708125f2175dd4 *man/dot-complete_states.Rd
-4c6856bef70b38658bdb9adf438ddbf8 *man/dot-get_last_frame.Rd
-822defaec9293e5bce6728c6bfcecddc *man/dot-max_id.Rd
-6616ee7150ded00a88fcfe86d629e34e *man/figures/README-unnamed-chunk-3.gif
-152c1de11d09be541d1bb504fe20719e *man/figures/README-unnamed-chunk-4-1.png
-a43cef038c756170afdfda6598b4886c *man/figures/logo.png
-9b254cb7c71ccf960eced34c7ab2d91d *man/figures/logo.svg
-71b8bf321aa8c900f35e8d184511b289 *man/gen_along.Rd
-43b4ffcf940a5eae197c23a506586dfd *man/gen_at.Rd
-eb09e55c9678b77c298c202cfc9e4075 *man/gen_components.Rd
-6627895d22e820b477f89c1ba35a3723 *man/gen_events.Rd
-6f9a26d80cb97d3600dd76f2b22456f9 *man/gen_internal.Rd
-588a829d11aaeb1e04685b827c79fd4c *man/gen_keyframe.Rd
-932e6b97ff95ecf5c2d215b65d5ef459 *man/get_frame.Rd
-0b8ba11147eb09c0661942f379c03c63 *man/interpolate_custom_at.Rd
-ee097a564b8a1432cf561f8ecc36ca8e *man/prepare_keyframes.Rd
-c3a1403cda76e69677010cd563c99af2 *man/reexports.Rd
-1f081c01cd58e66dd3e34d1523e3e551 *man/tween.Rd
-e4373e9693e32eea83e0efa810df6402 *man/tween_along.Rd
-8c2f535034f643c88cbd62434d41c266 *man/tween_appear.Rd
-5ae8335a6fb227f5334ca7e2d863aa99 *man/tween_at.Rd
-e44fc42789226d0083028644d8a05153 *man/tween_components.Rd
-9b53857281041b4f8fc2f3b21a7f983c *man/tween_elements.Rd
-7e0062c857915420ea0252ee6b4a7de2 *man/tween_events.Rd
-27b0ed281713d21cae636526fe08fb06 *man/tween_fill.Rd
-83d2b61c15d0404d249a7416b35c0bea *man/tween_state.Rd
-4368bbcc5cd1df401e37373da32bdcaa *man/tween_states.Rd
-3cd0e7a1f6c8044842cd75f49d80404f *man/tweenr-package.Rd
-0511084574d83421cc9f79c3b045a513 *man/vec_tween_class.Rd
-a984b69e512fa4f89572954c9bf0827b *src/along.cpp
-1c0ae3ee92015a004ce278cd6848e963 *src/at.cpp
-fad14a5d835c45d5192caba434310f69 *src/cpp11.cpp
-402909f0606ef2ea238175b22c3b4813 *src/easing.c
-20db4b5dfde1a8274bafe699cb5b5cc4 *src/easing.h
-a949b444ebe7e1b1665047f8c312d565 *src/element.cpp
-8a0511a0e3165d2db81e510510fd3532 *src/element_at.cpp
-12c2b4cec9fb5c8cb6bbc4ce4391327b *src/fill.cpp
-166404bc2ddb14c31b86a0547c73ee09 *src/state.cpp
-a9927948e79227af3bed234590c10de8 *src/utils.h
-aa895b44ba533f702387d9ec557e501a *tests/testthat.R
-9fd5370e51962e32a0b27f1dd9d83052 *tests/testthat/test-along.R
-ec7f03bba6a7a9fa151000c0dc183eab *tests/testthat/test-at.R
-08b9c296262eb34f21d869bc06f8a77c *tests/testthat/test-components.R
-eeb47b732dd6fee4463ae8ef2febfe30 *tests/testthat/test-events.R
-38b676a2badd317f67d5d2204f9c4a15 *tests/testthat/test-fill.R
-827c2ead19dd9b8d9ebce2893dc62eaf *tests/testthat/test-state.R
diff --git a/NEWS.md b/NEWS.md
index 3a9e600..388d84e 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -1,3 +1,5 @@
+# tweenr (development version)
+
 # tweenr 2.0.2
 
 * Fixed a recycling bug in `tween_state()`
diff --git a/README.Rmd b/README.Rmd
new file mode 100644
index 0000000..73fa190
--- /dev/null
+++ b/README.Rmd
@@ -0,0 +1,131 @@
+---
+output: github_document
+---
+
+<!-- README.md is generated from README.Rmd. Please edit that file -->
+
+```{r, echo = FALSE}
+knitr::opts_chunk$set(
+  collapse = TRUE,
+  comment = "#>",
+  fig.path = "man/figures/README-",
+  dev = 'jpeg',
+  ffmpeg.format='gif',
+  interval = 1/15
+)
+library(magrittr)
+```
+
+# tweenr <img src="man/figures/logo.png" align="right" />
+
+<!-- badges: start -->
+[![R-CMD-check](https://github.com/thomasp85/tweenr/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/thomasp85/tweenr/actions/workflows/R-CMD-check.yaml)
+[![CRAN\_Release\_Badge](http://www.r-pkg.org/badges/version-ago/tweenr)](https://CRAN.R-project.org/package=tweenr) [![CRAN\_Download\_Badge](http://cranlogs.r-pkg.org/badges/tweenr)](https://CRAN.R-project.org/package=tweenr)
+<!-- badges: end -->
+
+## What is this?
+`tweenr` is a package for interpolating data, mainly for animations. It provides
+a range of functions that take data of different forms and calculate 
+intermediary values. It supports all atomic vector types along with `factor`, 
+`Date`, `POSIXct`, characters representing colours, and `list`. `tweenr` is used 
+extensibly by [`gganimate`](https://github.com/thomasp85/gganimate) to create
+smooth animations, but can also be used by itself to prepare data for animation
+in another framework.
+
+## How do I get it?
+`tweenr` is available on CRAN and can be installed with 
+`install.packages('tweenr')`. In order to get the development version you can
+install it from github with `devtools`
+
+```{r, eval=FALSE}
+#install.packages('devtools')
+devtools::install_github('thomasp85/tweenr')
+```
+
+## An example
+Following is an example of using the pipeable `tween_state()` function with our
+belowed iris data:
+
+```{r, fig.show='animate', interval=1/10, message=FALSE, cache=TRUE}
+library(tweenr)
+library(ggplot2)
+
+# Prepare the data with some extra columns
+iris$col <- c('firebrick', 'forestgreen', 'steelblue')[as.integer(iris$Species)]
+iris$size <- 4
+iris$alpha <- 1
+iris <- split(iris, iris$Species)
+
+# Here comes tweenr
+iris_tween <- iris$setosa %>% 
+  tween_state(iris$versicolor, ease = 'cubic-in-out', nframes = 30) %>% 
+  keep_state(10) %>% 
+  tween_state(iris$virginica, ease = 'elastic-out', nframes = 30) %>% 
+  keep_state(10) %>% 
+  tween_state(iris$setosa, ease = 'quadratic-in', nframes = 30) %>% 
+  keep_state(10)
+
+# Animate it to show the effect
+p_base <- ggplot() + 
+  geom_point(aes(x = Petal.Length, y = Petal.Width, alpha = alpha, colour = col, 
+                 size = size)) + 
+  scale_colour_identity() +
+  scale_alpha_identity() + 
+  scale_size_identity() + 
+  coord_cartesian(xlim = range(iris_tween$Petal.Length), 
+                  ylim = range(iris_tween$Petal.Width))
+iris_tween <- split(iris_tween, iris_tween$.frame)
+for (d in iris_tween) {
+  p <- p_base %+% d
+  plot(p)
+}
+```
+
+## Other functions
+Besides the `tween_state()`/`keep_state()` combo showcased above, there are a
+slew of other functions meant for data in different formats
+
+**`tween_components`** takes a single data.frame, a vector of ids identifying
+recurrent elements, and a vector of timepoints for each row and interpolate each
+element between its specified time points.
+
+**`tween_events`** takes a single data.frame where each row encodes a single 
+unique event, along with a start, and end time and expands the data across a
+given number of frames.
+
+**`tween_along`** takes a single data.frame along with an id and timepoint 
+vector and calculate evenly spaced intermediary values with the possibility of 
+keeping old values at each frame.
+
+**`tween_at`** takes two data.frames or vectors along with a numeric vector 
+giving the interpolation point between the two data.frames to calculate.
+
+**`tween_fill`** fills missing values in a vector or data.frame by interpolating
+between previous and next non-missing elements
+
+## Easing
+In order to get smooth transitions you'd often want a non-linear interpolation.
+This can be achieved by using an easing function to translate the equidistant 
+interpolation points into new ones. `tweenr` has support for a wide range of 
+different easing functions, all of which can be previewed using `display_ease()`
+as here where the popular *cubic-in-out* is shown:
+
+```{r, dev='png'}
+tweenr::display_ease('cubic-in-out')
+```
+
+## Spatial interpolations
+The purpose of `tweenr` is to interpolate values independently. If paths and 
+polygons needs to be transitioned the 
+[`transformr`](https://github.com/thomasp85/transformr) package should be used
+as it expands tweenr into the spatial realm
+
+```{r, echo=FALSE}
+path <- dirname(knitr::fig_path())
+animations <- list.files(path, pattern = 'README-.*.gif')
+for (file in animations) {
+  files <- list.files(path, pattern = paste0(sub('.gif', '', file), '.*jpeg'), full.names = TRUE)
+  unlink(files)
+}
+```
+
diff --git a/_pkgdown.yml b/_pkgdown.yml
new file mode 100644
index 0000000..caf298a
--- /dev/null
+++ b/_pkgdown.yml
@@ -0,0 +1,10 @@
+destination: docs
+url: https://tweenr.data-imaginist.com
+
+authors:
+  Thomas Lin Pedersen:
+    href: https://data-imaginist.com
+
+template:
+  params:
+    bootswatch: yeti
diff --git a/codecov.yml b/codecov.yml
new file mode 100644
index 0000000..04c5585
--- /dev/null
+++ b/codecov.yml
@@ -0,0 +1,14 @@
+comment: false
+
+coverage:
+  status:
+    project:
+      default:
+        target: auto
+        threshold: 1%
+        informational: true
+    patch:
+      default:
+        target: auto
+        threshold: 1%
+        informational: true
diff --git a/cran-comments.md b/cran-comments.md
new file mode 100644
index 0000000..15c179d
--- /dev/null
+++ b/cran-comments.md
@@ -0,0 +1,8 @@
+This is a small hotfix release fixing a bug in the latest internal rewrite
+
+## revdepcheck results
+
+We checked 4 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.
+
+ * We saw 0 new problems
+ * We failed to check 0 packages
diff --git a/debian/changelog b/debian/changelog
index 3668a8a..88f0667 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+r-cran-tweenr (2.0.2+git20220906.1.2d1ef71-1) UNRELEASED; urgency=low
+
+  * New upstream snapshot.
+
+ -- Debian Janitor <janitor@jelmer.uk>  Fri, 20 Jan 2023 05:13:43 -0000
+
 r-cran-tweenr (2.0.2-1) unstable; urgency=medium
 
   * Disable reprotest
diff --git a/pkgdown/favicon/apple-touch-icon-120x120.png b/pkgdown/favicon/apple-touch-icon-120x120.png
new file mode 100644
index 0000000..906f978
Binary files /dev/null and b/pkgdown/favicon/apple-touch-icon-120x120.png differ
diff --git a/pkgdown/favicon/apple-touch-icon-152x152.png b/pkgdown/favicon/apple-touch-icon-152x152.png
new file mode 100644
index 0000000..243d7f4
Binary files /dev/null and b/pkgdown/favicon/apple-touch-icon-152x152.png differ
diff --git a/pkgdown/favicon/apple-touch-icon-180x180.png b/pkgdown/favicon/apple-touch-icon-180x180.png
new file mode 100644
index 0000000..06034a7
Binary files /dev/null and b/pkgdown/favicon/apple-touch-icon-180x180.png differ
diff --git a/pkgdown/favicon/apple-touch-icon-60x60.png b/pkgdown/favicon/apple-touch-icon-60x60.png
new file mode 100644
index 0000000..3675893
Binary files /dev/null and b/pkgdown/favicon/apple-touch-icon-60x60.png differ
diff --git a/pkgdown/favicon/apple-touch-icon-76x76.png b/pkgdown/favicon/apple-touch-icon-76x76.png
new file mode 100644
index 0000000..741b47c
Binary files /dev/null and b/pkgdown/favicon/apple-touch-icon-76x76.png differ
diff --git a/pkgdown/favicon/apple-touch-icon.png b/pkgdown/favicon/apple-touch-icon.png
new file mode 100644
index 0000000..18a618c
Binary files /dev/null and b/pkgdown/favicon/apple-touch-icon.png differ
diff --git a/pkgdown/favicon/favicon-16x16.png b/pkgdown/favicon/favicon-16x16.png
new file mode 100644
index 0000000..38026eb
Binary files /dev/null and b/pkgdown/favicon/favicon-16x16.png differ
diff --git a/pkgdown/favicon/favicon-32x32.png b/pkgdown/favicon/favicon-32x32.png
new file mode 100644
index 0000000..e2612c9
Binary files /dev/null and b/pkgdown/favicon/favicon-32x32.png differ
diff --git a/pkgdown/favicon/favicon.ico b/pkgdown/favicon/favicon.ico
new file mode 100644
index 0000000..20cf18b
Binary files /dev/null and b/pkgdown/favicon/favicon.ico differ
diff --git a/revdep/README.md b/revdep/README.md
new file mode 100644
index 0000000..52e12c7
--- /dev/null
+++ b/revdep/README.md
@@ -0,0 +1,2 @@
+# Revdeps
+
diff --git a/revdep/cran.md b/revdep/cran.md
new file mode 100644
index 0000000..ab1853c
--- /dev/null
+++ b/revdep/cran.md
@@ -0,0 +1,7 @@
+## revdepcheck results
+
+We checked 4 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.
+
+ * We saw 0 new problems
+ * We failed to check 0 packages
+
diff --git a/revdep/failures.md b/revdep/failures.md
new file mode 100644
index 0000000..9a20736
--- /dev/null
+++ b/revdep/failures.md
@@ -0,0 +1 @@
+*Wow, no problems at all. :)*
\ No newline at end of file
diff --git a/revdep/problems.md b/revdep/problems.md
new file mode 100644
index 0000000..9a20736
--- /dev/null
+++ b/revdep/problems.md
@@ -0,0 +1 @@
+*Wow, no problems at all. :)*
\ No newline at end of file

Debdiff

[The following lists of changes regard files as different if they have different names, permissions or owners.]

Files in second set of .debs but not in first

-rw-r--r--  root/root   /usr/lib/debug/.build-id/d5/6b2cdcb5a57a2a88a8842ba1fb3c1e510e639c.debug

Files in first set of .debs but not in second

-rw-r--r--  root/root   /usr/lib/debug/.build-id/51/4ece1a7117bc2a9b9179ec55715120af3603f2.debug

Control files of package r-cran-tweenr: lines which differ (wdiff format)

  • Depends: r-base-core (>= 4.2.1-2), 4.2.2.20221110-1), r-api-4.0, r-cran-farver, r-cran-magrittr, r-cran-rlang, r-cran-vctrs, r-cran-cpp11 (>= 0.4.2), libc6 (>= 2.29), libgcc-s1 (>= 3.0), libstdc++6 (>= 5.2)

Control files of package r-cran-tweenr-dbgsym: lines which differ (wdiff format)

  • Build-Ids: 514ece1a7117bc2a9b9179ec55715120af3603f2 d56b2cdcb5a57a2a88a8842ba1fb3c1e510e639c

More details

Full run details