tests/testit/utils.R

library(testit)

no_nav = "'controls': ['first', 'previous', 'play', 'next', 'last', 'loop', 'speed']"
assert(
  'remove_navigator() removes the navigator from the navigation panel setting',
  no_nav == remove_navigator("'controls': ['first', 'previous', 'play', 'next', 'last', 'navigator', 'loop', 'speed']"),
  no_nav == remove_navigator(''),
  (function(x) remove_navigator(x) == x)("'controls': ['first', 'last']")
)

Try the animation package in your browser

Any scripts or data that you put into this service are public.

animation documentation built on Oct. 7, 2021, 9:18 a.m.