Skip to content

mousetrap 3.2.1

Compare
Choose a tag to compare
@PascalKieslich PascalKieslich released this 03 Jan 16:57
· 25 commits to master since this release

Announcements

  • A tutorial to movement tracking of cognitive processes with the mousetrap R package has been published as a preprint. Please cite it as follows when using mousetrap in your research: Wulff, D. U., Kieslich, P. J., Henninger, F., Haslbeck, J. M. B., & Schulte-Mecklenbeck, M. (2021). Movement tracking of cognitive processes: A tutorial using mousetrap. PsyArXiv. https://doi.org/10.31234/osf.io/v685r
  • After more than 5 years, mousetrap finally has a logo (thanks to Dirk Wulff)

General changes to existing functions

  • Introduction of lifecycle badges for experimental and deprecated functions using the lifecycle package
  • mt_space_normalize function that was already deprecated and replaced with mt_align_start_end has been removed

New functions

  • mt_exclude_finish: Remove a potential phase without mouse movement at the end of the trial

Changes in specific functions

  • mt_average: Removed dimension argument which was already deprecated and replaced with av_dimension

Bugs fixed

  • mt_time_normalize and mt_resample: Setting the dimensions argument to "all" now works (up to now, the functions simply returned an error when setting dimensions = "all")
  • mt_angles: Now also works for the edge case that the trajectory array only contains a single trajectory (closes #15)
  • mt_heatmap: Now passes on the verbose argument to the internally used mt_heatmap_raw function to prevent messages from mt_heatmap_raw if verbose = FALSE

Internal changes

  • Added internal extract_dimensions function for extracting dimensions from trajectory array that also handles edge case of trajectory array with single trajectory